A258781 a(n) is the greatest positive integer k such that lambda(k) <= n where lambda is the Carmichael lambda function (A002322).
2, 24, 24, 240, 240, 504, 504, 504, 504, 504, 504, 65520, 65520, 65520, 65520, 65520, 65520, 65520, 65520, 65520, 65520, 65520, 65520, 131040, 131040, 131040, 131040, 131040, 131040, 171864, 171864, 171864, 171864, 171864, 171864, 138181680, 138181680, 138181680
Offset: 1
Keywords
Examples
a(2)=24 because lambda(24) = 2 and 24 is the greatest number such that lambda(24) <= 2.
Links
- Eric W. Weisstein's mathWorld, Carmichael Function
Programs
-
Maple
with(numtheory): for n from 1 to 30 do: ii:=0: for k from 10^7 by -1 to 1 while(ii=0)do: if lambda(k)<=n then printf(`%d, `,k):ii:=1: else fi: od: od:
Extensions
a(36)-a(38) corrected by Seth A. Troisi, Nov 22 2015