login

Revision History for A062916

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
Non-palindromic number and its reversal are both multiples of 19.
(history; published version)
#18 by Michael De Vlieger at Thu Sep 05 19:15:04 EDT 2024
STATUS

proposed

approved

#17 by Robert C. Lyons at Thu Sep 05 17:50:11 EDT 2024
STATUS

editing

proposed

#16 by Robert C. Lyons at Thu Sep 05 17:50:09 EDT 2024
PROG

(PARI) Palin(x)= { if (x==0, return(1)); if (x==10, return(0)); y=z=x; ds=ceil(log(x)/log(10)); t=10^(ds - 1); for (i=1, ds\2, d=y-10*(y\10); y\=10; e=z\t; z-=t*e; t/=10; if (e!=d, return(0)) ); return(1) } { default(realprecision, 50); n=0; forstep (m=0, 10^9, 19, if (Palin(m), next); x=m; r=0; while (x>0, d=x-10*(x\10); x\=10; r=r*10 + d); if (r%19 == 0, write("b062916.txt", n++, " ", m); if (n==1000, break)) ) } \\ _Harry J. Smith_, Aug 12 2009

{ default(realprecision, 50); n=0; forstep (m=0, 10^9, 19, if (Palin(m), next); x=m; r=0; while (x>0, d=x-10*(x\10); x\=10; r=r*10 + d); if (r%19 == 0, write("b062916.txt", n++, " ", m); if (n==1000, break)) ) } \\ Harry J. Smith, Aug 12 2009

STATUS

approved

editing

#15 by Harvey P. Dale at Mon Sep 20 18:52:25 EDT 2021
STATUS

editing

approved

#14 by Harvey P. Dale at Mon Sep 20 18:52:23 EDT 2021
MATHEMATICA

Select[19 Range[1000], !PalindromeQ[#]&&Divisible[IntegerReverse[#], 19]&] (* Harvey P. Dale, Sep 20 2021 *)

STATUS

approved

editing

#13 by Alois P. Heinz at Wed Feb 25 19:41:29 EST 2015
STATUS

editing

approved

#12 by Alois P. Heinz at Wed Feb 25 19:41:15 EST 2015
PROG

(PARI) Palin(x)= { if (x==0, return(1)); if (x==10, return(0)); y=z=x; ds=ceil(log(x)/log(10)); t=10^(ds - 1); for (i=1, ds\2, d=y-10*(y\10); y\=10; e=z\t; z-=t*e; t/=10; if (e!=d, return(0)) ); return(1) } { default(realprecision, 50); n=0; forstep (m=0, 10^9, 19, if (Palin(m), next); x=m; r=0; while (x>0, d=x-10*(x\10); x\=10; r=r*10 + d); if (r%19 == 0, write("b062916.txt", n++, " ", m); if (n==1000, break)) ) } // _\\ _Harry J. Smith_, Aug 12 2009

#11 by Alois P. Heinz at Wed Feb 25 19:40:19 EST 2015
LINKS

Harry J. Smith, <a href="/A062916/b062916.txt">Table of n, a(n) for n = 1,...,1000</a>

PROG

(PARI) Palin(x)= { if (x==0, return(1)); if (x==10, return(0)); y=z=x; ds=ceil(log(x)/log(10)); t=10^(ds - 1); for (i=1, ds\2, d=y-10*(y\10); y\=10; e=z\t; z-=t*e; t/=10; if (e!=d, return(0)) ); return(1) } { default(realprecision, 50); n=0; forstep (m=0, 10^9, 19, if (Palin(m), next); x=m; r=0; while (x>0, d=x-10*(x\10); x\=10; r=r*10 + d); if (r%19 == 0, write("b062916.txt", n++, " ", m); if (n==1000, break)) ) } [From _// _Harry J. Smith_, Aug 12 2009]

STATUS

proposed

editing

#10 by Jon E. Schoenfield at Wed Feb 25 19:24:03 EST 2015
STATUS

editing

proposed

#9 by Jon E. Schoenfield at Wed Feb 25 19:24:00 EST 2015
PROG

(ARIBAS) Programs for A062916 etc: If "m <> rev and" is deleted in line 8, one obtains the sequences which include palindromes (e.g. , A062907).

EXTENSIONS

More terms from _Klaus Brockhaus, _, Jul 02, 2001

STATUS

approved

editing