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.

A308324 Numbers which can be written in the form m^k - m with m an odd prime and k a positive integer.

Original entry on oeis.org

0, 6, 20, 24, 42, 78, 110, 120, 156, 240, 272, 336, 342, 506, 620, 726, 812, 930, 1320, 1332, 1640, 1806, 2162, 2184, 2394, 2756, 3120, 3422, 3660, 4422, 4896, 4970, 5256, 6162, 6558, 6806, 6840, 7832, 9312
Offset: 1

Views

Author

Craig J. Beisel, May 20 2019

Keywords

Comments

Besides the trivial example a(1)=0, the only known term which has two representations is a(24) = 2184 = 3^7 - 3 = 13^3 - 13. It is conjectured by Bennett to be the only term with this property.

Examples

			a(3) = 5^2 - 5 = 20.
		

Crossrefs

Programs

  • PARI
    x=List([]);lim=10000;forprime(m=3,lim,for(k=1,100,y=(m^k-m);if(y>lim,break,i=setsearch(x,y,1);if(i>0,listinsert(x, y, i)))));for(i=1, #x,print(x[i]));