login
A307850
Number of palindromic triangular numbers of length n whose index is also palindromic.
0
4, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
OFFSET
1,1
LINKS
P. De Geest, Palindromic Squares
Eric Weisstein's World of Mathematics, Palindromic Number
EXAMPLE
There is only one palindromic triangular number of length 2 whose index is also palindromic. 11->66. Thus, a(2)=1.
MATHEMATICA
A003098 = Select[PolygonalNumber[3, Range[0, 10^6]], PalindromeQ]
(* Set Range to level of desired running time. *)
A008509 = Select[Range[0, 10^6], PalindromeQ[PolygonalNumber[3, #]] &]
(* Set Range to level of desired running time. *)
Table[Length[ Select[A008509[[Table[ Select[Range[35], IntegerLength[A003098[[#]]] == n || (n == 1 && A003098[[#]] == 0) &], {35}][[n]]]], PalindromeQ[#] &]], {n, 11}]
(* Set the first two Ranges to encompass the length of A003098 and the last Range to encompass the length of the last value in A003098. *)
CROSSREFS
KEYWORD
nonn,base,hard
AUTHOR
Robert Price, May 01 2019
STATUS
approved