OFFSET
1,1
COMMENTS
LINKS
Jianing Song, Table of n, a(n) for n = 1..10000
FORMULA
Equals Union_{p prime} (Union_{d|(p-1)} {d*p, d*p^2, ..., d*p^e, ...}).
EXAMPLE
6 is a term since gcd(6, Phi_6(2)) = gcd(6, 3) = 3 > 1.
55 is a term since 55 = 11*5, 5 | (11-1). Indeed, gcd(55, Phi_55(3)) = gcd(55, 8138648440293876241) = 11 > 1.
12 is not a term since 12 = 3*4 but 4 does not divide 3-1. Indeed, gcd(12, Phi_12(a)) = gcd(12, a^4-a^2+1) = 1 for all a.
PROG
(PARI) isA342256(k) = if(k>1, my(L=factor(k), d=omega(k), p=L[d, 1]); (p-1)%(k/p^L[d, 2])==0, 0)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jianing Song, Mar 07 2021
STATUS
approved