login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A082208 Palindromes for which the sum of the digits is also a palindrome. 2
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 22, 33, 44, 101, 111, 121, 131, 141, 151, 161, 171, 191, 202, 212, 222, 232, 242, 252, 272, 303, 313, 323, 333, 353, 404, 414, 434, 515, 787, 868, 949, 1001, 1111, 1221, 1331, 2002, 2112, 2222, 2992, 3003, 3113, 3883, 4004 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,3

LINKS

Table of n, a(n) for n=1..54.

EXAMPLE

4774 is in the sequence because (1) it is a palindrome and (2) the sum of its digits 4 + 7 + 7 + 4 = 22 is also a palindrome.

MAPLE

rev := proc (n) local nn; nn := convert(n, base, 10): add(nn[j]*10^(nops(nn)-j), j = 1 .. nops(nn)) end proc: sd := proc (n) options operator, arrow: add(convert(n, base, 10)[j], j = 1 .. nops(convert(n, base, 10))) end proc: a := proc (n) if rev(n) = n and rev(sd(n)) = sd(n) then n else end if end proc: seq(a(n), n = 0 .. 5000); # Emeric Deutsch, Jan 18 2009

MATHEMATICA

d[n_]:=IntegerDigits[n]; sod[n_]:=Total[d[n]]; palQ[n_]:=Reverse[x=d[n]]==x; t={}; Do[If[palQ[n] && palQ[sod[n]], AppendTo[t, n]], {n, 0, 4005}]; t (* Jayanta Basu, May 15 2013 *)

CROSSREFS

Cf. A002113, A082207.

Sequence in context: A190217 A222620 A262069 * A201061 A099165 A239480

Adjacent sequences:  A082205 A082206 A082207 * A082209 A082210 A082211

KEYWORD

base,nonn

AUTHOR

Amarnath Murthy, Apr 10 2003

EXTENSIONS

More terms from Luc Stevens (lms022(AT)yahoo.com), Apr 16 2006; corrected Apr 18 2006; corrected Apr 20 2006

Edited by N. J. A. Sloane, Jan 14 2009 at the suggestion of Ian Kent

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 22 01:06 EDT 2019. Contains 321406 sequences. (Running on oeis4.)