A239523 Prime powers (A025475) such that the distances to the two nearest prime powers are primes.
1, 25, 27, 32, 128, 512, 2048, 8192, 32768, 562949953421312
Offset: 1
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.
lista(nn) = {precp = 1; currp = 4; for (nextp=5, nn, if (is_A025475(nextp), if (currp - precp < nextp - currp, tt = currp - precp, tt = nextp - currp); if (!(tt % 2) && ispolygonal(tt/2, 3), print1(currp, ", ")); precp = currp; currp = nextp;););} \\ Michel Marcus, Apr 11 2014
Comments