cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A303756 Number of values of k, 1 <= k <= n, with A002322(k) = A002322(n), where A002322 is Carmichael lambda.

This page as a plain text file.
%I A303756 #13 Sep 19 2020 16:15:11
%S A303756 1,2,1,2,1,3,1,4,2,2,1,5,1,3,3,4,1,4,1,5,5,2,1,6,1,2,2,6,1,6,1,1,3,2,
%T A303756 3,7,1,3,4,7,1,8,1,4,5,2,1,8,2,2,3,6,1,4,3,9,5,2,1,9,1,2,10,4,7,5,1,5,
%U A303756 3,8,1,11,1,2,4,6,3,9,1,10,1,2,1,12,6,3,3,6,1,10,11,4,4,2,3,2,1,4,5,5,1,7,1,12,13
%N A303756 Number of values of k, 1 <= k <= n, with A002322(k) = A002322(n), where A002322 is Carmichael lambda.
%C A303756 Ordinal transform of A002322.
%H A303756 Antti Karttunen, <a href="/A303756/b303756.txt">Table of n, a(n) for n = 1..20000</a>
%F A303756 Except for a(2) = 2, a(n) = A303758(n).
%t A303756 a[n_] := With[{c = CarmichaelLambda[n]}, Select[Range[n], c == CarmichaelLambda[#]&] // Length];
%t A303756 Array[a, 1000] (* _Jean-François Alcover_, Sep 19 2020 *)
%o A303756 (PARI)
%o A303756 up_to = 65537;
%o A303756 ordinal_transform(invec) = { my(om = Map(), outvec = vector(length(invec)), pt); for(i=1, length(invec), if(mapisdefined(om,invec[i]), pt = mapget(om, invec[i]), pt = 0); outvec[i] = (1+pt); mapput(om,invec[i],(1+pt))); outvec; };
%o A303756 A002322(n) = lcm(znstar(n)[2]); \\ From A002322
%o A303756 v303756 = ordinal_transform(vector(up_to,n,A002322(n)));
%o A303756 A303756(n) = v303756[n];
%Y A303756 Cf. A002322.
%Y A303756 Cf. also A081373, A303755, A303758.
%K A303756 nonn
%O A303756 1,2
%A A303756 _Antti Karttunen_, Apr 30 2018