login
A395004
a(n) is the larger of the two factors whose product is A394991.
6
1, 3, 6, 14, 30, 62, 117, 217, 467, 979, 1845, 3897, 7793, 15985, 31943, 64711, 129265, 258529, 520673, 849583, 2082753, 4151813, 8357825, 13264529, 33528945, 66985857, 134090689, 268181377, 536616833, 1073496033, 2146467585, 4042815511, 8587869953, 17178943969
OFFSET
1,2
COMMENTS
The factors may be equal, but no example for n>2 is known.
EXAMPLE
See A394987.
PROG
(Python)
from sympy.utilities.iterables import multiset_permutations
from sympy import divisors
def A395004(n):
a = 1<<n-1
b = a<<1
k = (n<<1)-1
c = (1<<k+1)-1
for l in range(k, 0, -1):
for s in multiset_permutations('0'*l+'1'*(k+1-l)):
m = c-int(''.join(s), 2)
for d in divisors(m):
if d**2>m:
break
if a<=d<b and a*d<=m<b*d:
return m//d # Chai Wah Wu, Apr 11 2026
CROSSREFS
A395003 is the smaller factor.
Sequence in context: A308580 A390083 A394990 * A307457 A192672 A396751
KEYWORD
nonn
AUTHOR
Hugo Pfoertner, Apr 09 2026
EXTENSIONS
a(24)-a(34) from Chai Wah Wu, Apr 09 2026
STATUS
approved