OFFSET
1,2
COMMENTS
Note that, e.g., 12 and 50 have similar structure in their prime power factorizations, but are not equivalent: their vectors of exponents are (2,1) and (1,2). On the other hand, 6 and 35 are equivalent with the same vector (1,1).
Question. What is the growth of the sequence?
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
nxt[{n_, a_}]:=Module[{j=FactorInteger[n+1][[All, 2]], k=a+1}, While[ j!= FactorInteger[k][[All, 2]], k++]; {n+1, k}]; Join[{1}, NestList[nxt, {2, 3}, 50][[All, 2]]] (* Harvey P. Dale, Jul 03 2020 *)
PROG
(Sage)
prime_signature = lambda n: [m for p, m in factor(n)]
@CachedFunction
def A178442(n):
if n <= 2: return {1:1, 2:3}[n]
psig_n = prime_signature(n)
return next(k for k in IntegerRange(A178442(n-1)+1, infinity) if prime_signature(k) == psig_n)
# D. S. McNeil, Dec 22 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Shevelev, Dec 22 2010
EXTENSIONS
Corrected and extended by D. S. McNeil, Dec 22 2010
STATUS
approved