OFFSET
1,2
COMMENTS
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
The sequence of terms together with their prime indices begins:
1: {}
2: {1}
4: {1,1}
6: {1,2}
8: {1,1,1}
12: {1,1,2}
16: {1,1,1,1}
24: {1,1,1,2}
28: {1,1,4}
30: {1,2,3}
32: {1,1,1,1,1}
36: {1,1,2,2}
48: {1,1,1,1,2}
56: {1,1,1,4}
60: {1,1,2,3}
64: {1,1,1,1,1,1}
72: {1,1,1,2,2}
96: {1,1,1,1,1,2}
MATHEMATICA
Select[Range[100], Divisible[#, Times@@Cases[If[#==1, {}, FactorInteger[#]], {p_, k_}:>PrimePi[p]^k]]&]
PROG
(PARI) isok(n) = my(f=factor(n)); !(n % prod(k=1, #f~, primepi(f[k, 1])^f[k, 2])); \\ Michel Marcus, Mar 22 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Mar 18 2019
STATUS
approved