cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-1 of 1 results.

A307850 Number of palindromic triangular numbers of length n whose index is also palindromic.

Original entry on oeis.org

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

Views

Author

Robert Price, May 01 2019

Keywords

Examples

			There is only one palindromic triangular number of length 2 whose index is also palindromic. 11->66. Thus, a(2)=1.
		

Crossrefs

Programs

  • 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. *)
Showing 1-1 of 1 results.