OFFSET
1,2
COMMENTS
Conjecture: Numbers having an even number of totient inverses, the odd inverses being confined to the lower half of the list.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
Max Alekseyev, PARI/GP Scripts for Miscellaneous Math Problems (invphi.gp).
EXAMPLE
1 is a totient and has totient inverses 1 and 2, giving an ordered pair (1, 2*1)
6 is a totient and has totient inverses 7, 9, 14, 18 giving ordered pairs (7,2*7) and (9, 2*9).
18 is a totient and has totient inverses 19, 27, 38, 54 giving ordered pairs (19,2*19) and (27, 2*27).
348 is a totient and has totient inverses 349, 413, 531, 698, 826, 1062 giving ordered pairs (349, 2*349), (413, 2*413), and (531, 2*531).
MAPLE
q:= n-> (s-> s<>{} and ((x, y)-> x = map(t->t/2, y))(
selectremove(x-> x::odd, s)))({numtheory[invphi](n)[]}):
select(q, [$1..543])[]; # Alois P. Heinz, Nov 21 2024
PROG
(PARI) evencardinality(list)={e=0; o=0; if(0 < #list, if(0 == Mod(#list, 2), for(i=1, #list, if(1==Mod(list[i], 2), o++, e++)), o++), o++); return(if(o==e, 1, 0))}
for(n = 1, 372, if(1 == evencardinality(invphi(n)), print1(n, ", ")));
CROSSREFS
KEYWORD
nonn
AUTHOR
Torlach Rush, Oct 11 2024
STATUS
approved