OFFSET
1,2
COMMENTS
Numbers ending in 0 are not included. - Harry J. Smith, Mar 06 2010
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..100
EXAMPLE
153 and 351 are both triangular.
MATHEMATICA
dtn[L_] := Fold[10#1+#2&, 0, L] tritest[n_] := Module[{t}, t=Floor[N[Sqrt[2n]]]; 2n==t(t+1)] A={}; For[i=1, i>0, i++, t=i(i+1)/2; If[tritest[dtn[Reverse[IntegerDigits[t]]]]&&Mod[t, 10]>0, AppendTo[A, t]; Print[A]]]
Select[Accumulate[Range[12000]], Last[IntegerDigits[#]]!=0&&OddQ[Sqrt[1+ 8*FromDigits[Reverse[IntegerDigits[#]]]]]&] (* Harvey P. Dale, Jun 04 2015 *)
PROG
(PARI)
Rev(x)= { fromdigits(Vecrev(digits(x))) }
{ for (m=1, 10^6, my(t=m*(m + 1)/2); if (t%10 && issquare(8*Rev(t) + 1), print1(t, ", ")) ) } \\ Harry J. Smith, Mar 08 2010
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Erich Friedman, Jan 08 2002
EXTENSIONS
Offset changed from 0 to 1 by Harry J. Smith, Mar 06 2010
STATUS
approved
