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-3 of 3 results.

A008509 Positive integers k such that k-th triangular number is palindromic.

Original entry on oeis.org

1, 2, 3, 10, 11, 18, 34, 36, 77, 109, 132, 173, 363, 1111, 1287, 1593, 1833, 2662, 3185, 3369, 3548, 8382, 11088, 18906, 50281, 57166, 102849, 111111, 167053, 179158, 246642, 337650, 342270, 365436, 417972, 1620621, 3240425, 3457634, 3707883
Offset: 1

Views

Author

Keywords

References

  • Charles W. Trigg, Palindromic Triangular Numbers, J. Rec. Math., 6 (1973), 146-147.
  • D. Wells, The Penguin Dictionary of Curious and Interesting Numbers. Penguin Books, NY, 1986, 93.

Crossrefs

Programs

A050721 Primes arising in A083571.

Original entry on oeis.org

2, 3, 11, 109, 173, 5513600773
Offset: 1

Views

Author

Patrick De Geest, Sep 15 1999

Keywords

Comments

Prime indices of palindromic triangular numbers.

Crossrefs

A083571 Numbers k such that A008509(k) is prime.

Original entry on oeis.org

2, 3, 5, 10, 12, 72
Offset: 1

Views

Author

N. J. A. Sloane, Jun 14 2003

Keywords

Crossrefs

Programs

  • Mathematica
    palQ[n_]:=Reverse[x=IntegerDigits[n]]==x; t={}; c=0; Do[If[palQ[n*(n+1)/2],c=c+1; If[PrimeQ[n],AppendTo[t,c]]],{n,10^3}]; t (* Jayanta Basu, May 14 2013 *)
  • PARI
    ispal(n)=n=digits(n); for(i=1, #n\2, if(n[i]!=n[#n+1-i], return(0))); 1
    for(k=1,1e9,if(ispal(k*(k+1)/2),n++;if(isprime(k),print1(n", ")))) \\ Charles R Greathouse IV, May 15 2013
Showing 1-3 of 3 results.