|
|
A251393
|
|
Indices of powers of 2 in A098550.
|
|
4
|
|
|
1, 2, 4, 6, 14, 29, 65, 137, 277, 546, 1109, 2208, 4391, 8746, 17404, 34662, 69036, 137604, 274385, 547278, 1091962, 2179171
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
|
|
PROG
|
(Haskell)
a251393 n = a251393_list !! (n-1)
a251393_list = filter ((== 1) . a209229 . a098550) [1..]
(Python)
from fractions import gcd
A251393_list, l1, l2, s, p2, b = [1, 2], 3, 2, 4, 4, {}
for n in range(4, 10**4):
....i = s
....while True:
........if not i in b and gcd(i, l1) == 1 and gcd(i, l2) > 1:
............l2, l1, b[i] = l1, i, 1
............while s in b:
................b.pop(s)
................s += 1
............if i == p2:
................A251393_list.append(n)
................p2 *= 2
............break
(C) See Links section.
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|