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

A268594 Numbers n of the form p^k - k = q^i - i for primes p < q.

Original entry on oeis.org

2, 12, 58, 238, 3120, 6856, 29788, 50650, 65520, 161046, 262126, 300760, 1295026, 3442948, 9393928, 13997518, 21253930, 49430860, 84604516, 95443990, 237176656, 329939368, 384240580, 487443400, 633839776, 893871732, 904231060, 1284365500, 1605723208, 3183010108, 3301293166, 3588604288, 3936827536
Offset: 1

Views

Author

Jud McCranie, Feb 07 2016

Keywords

Examples

			50650 = 37^3-3 = 50651^1-1.
		

Crossrefs

See A268595 for values of p and A268596 for values of q.
Cf. A178251.

Programs

  • PARI
    is(n)=my(p);sum(e=1,logint(n,2)+1,ispower(n+e,e,&p)&&isprime(p))>1 \\ Charles R Greathouse IV, Feb 08 2016
    
  • PARI
    list(lim)=my(v=List([2]),q,n); for(e=3,logint(1+lim\=1,2), forprime(p=2, sqrtnint(lim+e,e), if(sum(i=1,e-1, n=p^e-e; ispower(n+i,i,&q) && isprime(q)), listput(v,n)))); Set(v) \\ Charles R Greathouse IV, Feb 08 2016

A268596 Values of prime q corresponding to terms in A268594.

Original entry on oeis.org

3, 13, 59, 239, 3121, 6857, 29789, 50651, 65521, 161047, 262127, 300761, 1295027, 3442949, 9393929, 13997519, 21253931, 49430861, 84604517, 95443991, 237176657, 329939369, 384240581, 487443401, 633839777, 893871733, 904231061, 1284365501, 1605723209, 3183010109, 3301293167, 3588604289, 3936827537
Offset: 1

Views

Author

Jud McCranie, Feb 07 2016

Keywords

Examples

			50650 = 37^3-3 = 50651^1-1, so 50651 is a term.
		

Crossrefs

Cf. A268594 for the main sequence and A268595 for the corresponding values of p.
Showing 1-2 of 2 results.