login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A347977 Primes of the form 2^p * 3^q * 5^r * 7^s - 1. 1
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 41, 47, 53, 59, 71, 79, 83, 89, 97, 107, 127, 139, 149, 167, 179, 191, 199, 223, 239, 251, 269, 293, 349, 359, 383, 419, 431, 449, 479, 499, 503, 587, 599, 647, 719, 809, 839, 863, 881, 971, 1049, 1151, 1249, 1259, 1279, 1399, 1439, 1499, 1511, 1567, 1619, 1889 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Restricting to r = s = 0 gives A005105; s = 0 gives A293194.
Primes of the form A002473(k) - 1.
LINKS
Flávio V. Fernandes, Table of n, a(n) for n = 1..10000
EXAMPLE
251 = 2^2 * 3^2 * 5^0 * 7^1 - 1 and 839 = 2^3 * 3^1 * 5^1 * 7^1 - 1 are terms.
MATHEMATICA
With[{n = 2000}, Sort@ Select[Flatten@ Table[2^p * 3^q * 5^r * 7^s - 1, {p, 0, Log[2, n]}, {q, 0, Log[3, n/(2^p)]}, {r, 0, Log[5, n/(2^p * 3^q)]}, {s, 0, Log[7, n/(2^p * 3^q * 5^r)]}], PrimeQ]] (* Amiram Eldar, Sep 25 2021 after Michael De Vlieger at A293194 *)
PROG
(PARI) isok(p) = isprime(p) && (vecmax(factor(p+1)[, 1]) < 11); \\ Michel Marcus, Nov 10 2021
(PARI) upto(limit)={my(P=[2, 3, 5, 7]); local(L=List()); my(recurse(k, t) = if(t<=limit+1, if(k>#P, if(isprime(t-1), listput(L, t-1)), my(b=P[k]); for(e=0, logint(limit+1, b), self()(k+1, t*b^e))))); recurse(1, 1); vecsort(Vec(L))} \\ Andrew Howroyd, Nov 20 2021
CROSSREFS
Sequence in context: A171045 A222566 A299171 * A002267 A178762 A051750
KEYWORD
nonn
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 16:22 EDT 2024. Contains 371780 sequences. (Running on oeis4.)