OFFSET
0,2
COMMENTS
Gupta states in Prime Curios: "The smallest odd prime which can be represented as sum of a triangular number and its reverse, i.e., 10 + 01 = 11."
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..14141
G. L. Honaker, Jr. and Chris Caldwell, eds., 11.
EXAMPLE
MAPLE
a:= n-> (p-> parse(cat(p, "+", seq(p[-i],
i=1..length(p)))))(""||(n*(n+1)/2)):
seq(a(n), n=0..60); # Alois P. Heinz, Jun 19 2016
MATHEMATICA
rev[n_] := FromDigits@ Reverse@ IntegerDigits@ n; t[n_] := n (n + 1)/2; Table[t@ n + rev@ t@ n, {n, 0, 49}] (* Giovanni Resta, Jun 19 2016 *)
#+IntegerReverse[#]&/@Accumulate[Range[0, 50]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Sep 20 2016 *)
CROSSREFS
KEYWORD
AUTHOR
Jonathan Vos Post, Apr 03 2007
EXTENSIONS
Edited by Giovanni Resta, Jun 19 2016
STATUS
approved