A219793 Least k such that phi(n) = lambda(k), or 0 if there is no such k.
1, 1, 3, 3, 5, 3, 7, 5, 7, 5, 11, 5, 13, 7, 32, 32, 17, 7, 19, 32, 13, 11, 23, 32, 25, 13, 19, 13, 29, 32, 31, 17, 25, 17, 224, 13, 37, 19, 224, 17, 41, 13, 43, 25, 224, 23, 47, 17, 43, 25, 128, 224, 53, 19, 41, 224, 37, 29, 59, 17, 61, 31, 37, 128, 119, 25
Offset: 1
Keywords
Examples
a(6) = 3 because phi(6) = lambda(3) = 2.
Links
- Michel Lagneau, Table of n, a(n) for n = 1..10000
Programs
-
Maple
with(numtheory): for n from 1 to 100 do: ii:=0:for k from 1 to 10^6 while(ii=0) do:if phi(n)=lambda(k) then ii:=1: printf(`%d, `,k):else fi:od:if ii=0 then printf(`%d, `,0): else fi:od:
-
Mathematica
Table[k=0; While[!EulerPhi[n] == CarmichaelLambda[k], k++]; k, {n, 100}] (* program will go into an infinite loop at n = 2047 *)
Comments