login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A097605
Numbers n such that phi(n) divides n^2 - 1, where phi(n) (A000010) is number of positive integers <= n and coprime to n.
3
1, 2, 3, 5, 7, 11, 13, 15, 17, 19, 23, 29, 31, 35, 37, 41, 43, 47, 53, 59, 61, 65, 67, 71, 73, 79, 83, 89, 91, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 255, 257
OFFSET
1,2
COMMENTS
All primes are in the sequence. 2 is the only even integer in the sequence.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
phi(35) = 24, 24 divides 35^2 -1 = 1224.
MATHEMATICA
Select[ Range[ 262], Mod[ #^2 - 1, EulerPhi[ # ]] == 0 &] (* Robert G. Wilson v, Sep 01 2004 *)
PROG
(PARI) is(n)=(n^2-1)%eulerphi(n)==0 \\ Charles R Greathouse IV, Feb 21 2013
CROSSREFS
Sequence in context: A322833 A117287 A121615 * A143578 A187731 A182140
KEYWORD
nonn
AUTHOR
Leroy Quet, Aug 30 2004
EXTENSIONS
More terms from Robert G. Wilson v and John W. Layman, Sep 01 2004
STATUS
approved