OFFSET
1,2
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..1000
FORMULA
MATHEMATICA
palQ[n_] := Block[{d=IntegerDigits@n}, d == Reverse@d]; happyQ[n_] := Block[{w = n}, While[w > 6, w = Total[IntegerDigits[w]^2]]; w == 1]; Select[Range[21012], palQ[#] && happyQ[#] &] (* Giovanni Resta, Mar 14 2013 *)
PROG
(Haskell)
a216237 n = a216237_list !! (n-1)
a216237_list = filter ((== 1) . a136522) a007770_list
-- Reinhard Zumkeller, Mar 15 2013
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Jayanta Basu, Mar 14 2013
STATUS
approved