OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = r(p(n)) + r(p(n+1)) + r(p(n+2)) where p(n) is the n-th prime number and r(n) is the number obtained by the reversal of the digits of n (e.g., r(1230) = 321).
EXAMPLE
(from primes 11, 13, and 17): 11 + 31 + 71 = 113;
(from primes 13, 17, and 19): 31 + 71 + 91 = 193;
(from primes 173, 179, and 181): 371 + 971 + 181 = 1523.
MATHEMATICA
r[n_] := FromDigits[Reverse[IntegerDigits[n]]]; Table[r[Prime[n]] + r[Prime[n+1]] + r[Prime[n+2]], {n, 50}]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Vincenzo Librandi, Dec 09 2009
EXTENSIONS
More terms from Matthew Conroy, Dec 28 2010
STATUS
approved