[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A278224
a(n) = A046523(A048673(n)).
9
1, 2, 2, 2, 4, 8, 6, 6, 2, 2, 2, 2, 4, 2, 12, 2, 6, 6, 12, 32, 12, 12, 6, 12, 4, 6, 12, 12, 16, 2, 2, 6, 6, 2, 6, 2, 6, 6, 2, 6, 6, 2, 24, 2, 24, 12, 8, 6, 2, 6, 48, 6, 30, 12, 6, 2, 6, 2, 2, 6, 6, 24, 30, 6, 60, 12, 36, 6, 2, 12, 2, 12, 24, 6, 6, 24, 72, 128, 30, 12, 2, 6, 12, 24, 2, 2, 30, 48, 4, 2, 6, 2, 6, 48, 16, 96, 6, 30, 2, 6, 12, 6, 24, 30, 2, 2, 6
OFFSET
1,2
COMMENTS
This sequence works as a "sentinel" for sequence A048673 by matching to any other sequence that is obtained as f(A048673(n)), where f(n) is any function that depends only on the prime signature of n (see the index entry for "sequences computed from exponents in ..."). As of Nov 11 2016 no such sequences were present in the database.
FORMULA
a(n) = A046523(A048673(n)).
PROG
(Scheme) (define (A278224 n) (A046523 (A048673 n)))
(Python)
from sympy import factorint, nextprime
from operator import mul
def P(n):
f = factorint(n)
return sorted([f[i] for i in f])
def a046523(n):
x=1
while True:
if P(n) == P(x): return x
else: x+=1
def a048673(n):
f = factorint(n)
return 1 if n==1 else (1 + reduce(mul, [nextprime(i)**f[i] for i in f]))//2
def a(n): return a046523(a048673(n))
print([a(n) for n in range(1, 101)]) # Indranil Ghosh, Jun 12 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Nov 16 2016
STATUS
approved