|
|
A255133
|
|
Number of unitary divisors of odd Catalan numbers (A038003).
|
|
2
|
|
|
1, 1, 2, 8, 64, 2048, 1048576, 68719476736, 18446744073709551616, 166153499473114484112975882535043072, 822752278660603021077484591278675252491367932816789931674304512, 4925250774549309901534880012517951725634967408808180833493536675530715221437151326426783281860614455100828498788352
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
A038003(4) = 9694845 which has 64 unitary divisors.
|
|
PROG
|
(Python)
from operator import mul
from functools import reduce
from sympy import factorint
for n in range(2, 2**17):
....for p, e in factorint(4*n-2).items():
........if p in c:
............c[p] += e
........else:
............c[p] = e
....for p, e in factorint(n+1).items():
........if c[p] == e:
............del c[p]
........else:
............c[p] -= e
....if n == s:
........c2 = 2**len(c)
........s = 2*s+1
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|