|
|
A281796
|
|
Least k such that k*i is a totient number (A002202) for all i = 1 to n.
|
|
1
|
|
|
1, 1, 2, 2, 2, 2, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 8, 8, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
COMMENTS
|
Such k always exists and each term can be repeated only finitely many times. So there are infinitely many distinct values of terms in this sequence.
Numbers n > 1 such that a(n) > a(n-1) are 3, 7, 17, 19, 43, 167, 211, 353, 733, 2089, 2837, 5227, ...
Distinct values of terms are 1, 2, 4, 8, 12, 24, 48, 120, 288, 576, 720, ...
|
|
LINKS
|
|
|
EXAMPLE
|
a(7) = 4 because 4, 8, 12, 16, 20, 24, 28 are all totient numbers and 4 is the least number with this property.
|
|
MAPLE
|
istot:= proc(n) option remember; numtheory:-invphi(n) <> [] end proc:
f:= proc(n) option remember; local k;
for k from procname(n-1) by 2 do
if andmap(istot, {$1..n} *~ k) then return k fi
od;
end proc:
f(1):= 1: f(2):= 1: f(3):= 2:
|
|
PROG
|
(PARI) is(n, k) = my(i); for(i=1, n, if(istotient(k*i)==0, return(0))); 1;
a(n) = my(k=1); while(!is(n, k), k++); k;
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|