OFFSET
1,1
COMMENTS
Numbers that are one less than a prime number and of the form (p-1)*p^e for some prime p and e > 0. - Jianing Song, Apr 13 2019
LINKS
Jianing Song, Table of n, a(n) for n = 1..162 (all terms below 10^8)
EXAMPLE
6 is a member because 6 = (3-1)*3^1 = (7-1)*7^0 and 3 and 7 are primes.
MATHEMATICA
s = Split@Sort@Flatten@Table[(Prime[n] - 1)Prime[n]^k, {n, 68000}, {k, 0, 16}]; Union@Flatten@Select[s, Length@# == 2 &] (* Robert G. Wilson v, Jan 05 2006 *)
PROG
(PARI) isA114874(n) = if(n>1, my(v=factor(n), d=#v[, 1], p=v[d, 1], e=v[d, 2]); (isprime(n+1) && n==(p-1)*p^e), 0) \\ Jianing Song, Apr 13 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Franz Vrabec, Jan 03 2006
EXTENSIONS
a(13)-a(38) from Robert G. Wilson v, Jan 05 2006
STATUS
approved