|
|
A140635
|
|
Smallest positive integer having the same number of divisors as n.
|
|
13
|
|
|
1, 2, 2, 4, 2, 6, 2, 6, 4, 6, 2, 12, 2, 6, 6, 16, 2, 12, 2, 12, 6, 6, 2, 24, 4, 6, 6, 12, 2, 24, 2, 12, 6, 6, 6, 36, 2, 6, 6, 24, 2, 24, 2, 12, 12, 6, 2, 48, 4, 12, 6, 12, 2, 24, 6, 24, 6, 6, 2, 60, 2, 6, 12, 64, 6, 24, 2, 12, 6, 24, 2, 60, 2, 6, 12, 12, 6, 24, 2, 48, 16, 6, 2, 60, 6, 6, 6, 24, 2
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
a(n) <= n for all n. Moreover, a(n) = n if and only if n belongs to A005179 or A007416.
|
|
LINKS
|
|
|
FORMULA
|
|
|
MATHEMATICA
|
a140635[n_] := NestWhile[#+1&, 1, DivisorSigma[0, n]!=DivisorSigma[0, #]&]
a140635[{m_, n_}] := Map[a140635, Range[m, n]]
|
|
PROG
|
(Python)
from sympy import divisor_count as d
def a(n):
x=d(n)
m=1
while True:
if d(m)==x: return m
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|