OFFSET
1,2
EXAMPLE
a(7) = 12 because Sum_{i=1..12} lambda(i) = 1 + 1 + 2 + 2 + 4 + 2 + 6 + 2 + 6 + 4 + 10 + 2 = 42, and 42/7 = 6.
MAPLE
S:= ListTools:-PartialSums(map(numtheory:-lambda, [$1..500])):
N:= 100: count:= 0: V:= Vector(N):
for n from 1 to 500 while count < N do
d:= select(t -> t <= N and V[t] = 0, numtheory:-divisors(S[n]));
count:= count + nops(d);
V[convert(d, list)]:= n;
od:
convert(V, list); # Robert Israel, Mar 11 2019
MATHEMATICA
a[n_] := (m = 1; While[! IntegerQ[Sum[CarmichaelLambda[k], {k, 1, m}]/n], m++]; m); a /@ Range[80]
PROG
(PARI) lambda(n) = lcm(znstar(n)[2]);
a(n) = {my(k=1, s=lambda(k)); while (s % n, k++; s += lambda(k)); k; } \\ Michel Marcus, Mar 09 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Michel Lagneau, Mar 08 2019
STATUS
approved