|
|
|
|
1, 2, 8, 36, 39, 49, 370, 626, 632, 1030, 13155, 32317, 61358, 86704, 2535431, 13360009
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
|
|
LINKS
|
|
|
PROG
|
(Haskell)
a185635 n = a185635_list !! (n-1)
a185635_list = filter (> 0) $
zipWith (\x y -> if x == y then y else 0) [1..] a075075_list
(Python)
from __future__ import division
from fractions import gcd
A185635_list, l1, l2, m, b = [1, 2], 2, 1, 2, {1, 2}
for n in range(3, 10**4):
....i = m
....while True:
........if not i in b:
............if n == i:
................A185635_list.append(i)
............l1, l2, m = i, l1, i//gcd(l1, i)
............b.add(i)
............break
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|