login

Revision History for A065206

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

Showing entries 1-10 | older changes
One 'Reverse and Add' step is needed to reach a palindrome.
(history; published version)
#17 by Sean A. Irvine at Mon Aug 21 16:44:25 EDT 2023
STATUS

editing

approved

#16 by Sean A. Irvine at Mon Aug 21 16:44:19 EDT 2023
EXTENSIONS

OFFSET changed from 0,1 to 1,1 Offset corrected by Harry J. Smith, Oct 13 2009

STATUS

approved

editing

#15 by Harvey P. Dale at Wed Jun 14 10:54:15 EDT 2017
STATUS

editing

approved

#14 by Harvey P. Dale at Wed Jun 14 10:54:11 EDT 2017
MATHEMATICA

Select[Range[10, 120], !PalindromeQ[#]&&PalindromeQ[#+IntegerReverse[#]]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jun 14 2017 *)

STATUS

approved

editing

#13 by Charles R Greathouse IV at Thu Sep 10 23:26:46 EDT 2015
STATUS

editing

approved

#12 by Charles R Greathouse IV at Thu Sep 10 23:26:40 EDT 2015
COMMENTS

The number of steps starts at 0, so palindromes (cf. A002113) are excluded.

LINKS

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

PROG

(PARI) Rev(x)= { local(d, r=0); while (x>0, d=x-10*(x\10); x\=10; r=r*10 + d); return(r) } digitsIn(x)= { local(d); if (x==0, return(1)); d=1 + log(x)\log(10); if (10^d == x, d++, if (10^(d-1) > x, d--)); return(d) } Palin(x)= { local(d, e, f, i, t, y); if (x==0, return(1)); y=x; d=digitsIn(x); t=10^(d - 1); for (i=1, d\2, f=y-10*(y\10); y\=10; e=x\t; x-=t*e; t/=10; if (e!=f, return(0)) ); return(1) } { n=0; for (m = 0, 10^9, if (!Palin(m) && Palin(Rev(m) + m), write("b065206.txt", n++, " ", m); if (n==1000, return)) ) } [From _\\ _Harry J. Smith_, Oct 13 2009]

STATUS

approved

editing

#11 by N. J. A. Sloane at Fri Feb 22 21:37:27 EST 2013
PROG

-- _Reinhard Zumkeller, _, Oct 14 2011

Discussion
Fri Feb 22
21:37
OEIS Server: https://oeis.org/edit/global/1866
#10 by Russ Cox at Fri Mar 30 17:27:33 EDT 2012
AUTHOR

_Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), _, Oct 21 2001

Discussion
Fri Mar 30
17:27
OEIS Server: https://oeis.org/edit/global/145
#9 by Russ Cox at Fri Mar 30 17:24:28 EDT 2012
PROG

(PARI) Rev(x)= { local(d, r=0); while (x>0, d=x-10*(x\10); x\=10; r=r*10 + d); return(r) } digitsIn(x)= { local(d); if (x==0, return(1)); d=1 + log(x)\log(10); if (10^d == x, d++, if (10^(d-1) > x, d--)); return(d) } Palin(x)= { local(d, e, f, i, t, y); if (x==0, return(1)); y=x; d=digitsIn(x); t=10^(d - 1); for (i=1, d\2, f=y-10*(y\10); y\=10; e=x\t; x-=t*e; t/=10; if (e!=f, return(0)) ); return(1) } { n=0; for (m = 0, 10^9, if (!Palin(m) && Palin(Rev(m) + m), write("b065206.txt", n++, " ", m); if (n==1000, return)) ) } [From _Harry J. Smith (hjsmithh(AT)sbcglobal.net), _, Oct 13 2009]

EXTENSIONS

OFFSET changed from 0,1 to 1,1 by _Harry J. Smith (hjsmithh(AT)sbcglobal.net), _, Oct 13 2009

Discussion
Fri Mar 30
17:24
OEIS Server: https://oeis.org/edit/global/133
#8 by T. D. Noe at Fri Oct 14 11:21:47 EDT 2011
STATUS

proposed

approved