A264744 Exponent of the prime power A264734(n).
1, 1, 1, 2, 1, 2, 3, 1, 4, 1, 1, 1, 1
Offset: 1
Examples
a(9) = 4 is the exponent of 81 = A264734(9) = 3^4.
Programs
-
Mathematica
t = Prepend[Select[Range@ 100000, AllTrue[{# - 2, #, # + 2}, PrimePowerQ] &], 3]; Flatten@ Map[Last, FactorInteger@ # &@ t, {2}] (* Michael De Vlieger, Dec 03 2015, Version 10 *)
-
PARI
is(k) = isprimepower(k) || k==1; for(k=1, 1e6, if(is(k) && is(k+2) && is(k-2), print1(bigomega(k), ", "))) \\ Altug Alkan, Nov 23 2015
Comments