A182337 List of positive integers whose prime tower factorization, as defined in comments, does not contain the prime 3.
1, 2, 4, 5, 7, 10, 11, 13, 14, 16, 17, 19, 20, 22, 23, 25, 26, 28, 29, 31, 32, 34, 35, 37, 38, 41, 43, 44, 46, 47, 49, 50, 52, 53, 55, 58, 59, 61, 62, 65, 67, 68, 70, 71, 73, 74, 76, 77, 79, 80, 82, 83, 85, 86, 89, 91, 92, 94, 95, 97, 98, 100, 101, 103, 106
Offset: 1
Keywords
Links
- Amiram Eldar, Table of n, a(n) for n = 1..10000
- Patrick Devlin and Edinah Gnang, Primes Appearing in Prime Tower Factorization, arXiv:1204.5251 [math.NT], 2012-2014.
Crossrefs
Cf. A182318.
Programs
-
Maple
# The integer n is in this sequence if and only if # containsPrimeInTower(3, n) returns false containsPrimeInTower:=proc(q, n) local i, L, currentExponent; option remember; if n <= 1 then return false: end if; if type(n/q, integer) then return true: end if; L := ifactors(n)[2]; for i to nops(L) do currentExponent := L[i][2]; if containsPrimeInTower(q, currentExponent) then return true: end if end do; return false: end proc: select(x-> not containsPrimeInTower(3,x), [$1..120])[];
-
Mathematica
indic[1] = 1; indic[n_] := indic[n] = Switch[f = FactorInteger[n], {{3, }}, 0, {{, }}, indic[f[[1, 2]] ], , Times @@ (indic /@ (Power @@@ f))]; Select[Range[120], indic[#] == 1&] (* Jean-François Alcover, Feb 25 2018 *)
Comments