OFFSET
1,2
COMMENTS
Multiplicative with a(2^e) = 2^e, else if p is the m-th prime then a(p^e) = q^e where q is the m/2-th prime of the form 4*k + 3 (A002145) for even m and a(p^e) = r^e where r is the (m-1)/2-th prime of the form 4*k + 1 (A002144) for odd m. - David A. Corneth, Apr 25 2022
LINKS
MATHEMATICA
terms = 72;
A111745 = Module[{prs = Prime[Range[2 terms]], m3, m1, min},
m3 = Select[prs, Mod[#, 4] == 3&];
m1 = Select[prs, Mod[#, 4] == 1&];
min = Min[Length[m1], Length[m3]];
Riffle[Take[m3, min], Take[m1, min]]];
A049084[n_] := PrimePi[n]*Boole[PrimeQ[n]];
PROG
(PARI)
up_to = 26927; \\ One of the prime fixed points.
A108546list(up_to) = { my(v=vector(up_to), p, q); v[1] = 2; v[2] = 3; v[3] = 5; for(n=4, up_to, p = v[n-2]; q = nextprime(1+p); while(q%4 != p%4, q=nextprime(1+q)); v[n] = q); (v); };
v108546 = A108546list(up_to);
A108546(n) = v108546[n];
A108548(n) = { my(f=factor(n)); f[, 1] = apply(A108546, apply(primepi, f[, 1])); factorback(f); }; \\ Antti Karttunen, Apr 25 2022
CROSSREFS
KEYWORD
AUTHOR
Reinhard Zumkeller, Jun 10 2005
EXTENSIONS
Name edited by Antti Karttunen, Apr 25 2022
STATUS
approved