OFFSET
1,2
LINKS
Reinhard Zumkeller, Rows n=1..120 of triangle, flattened
EXAMPLE
Triangle begins 1; 3 5; 7 8 10; 11 13 15 17; 18 19 21 22 23; 25 29 31 35 37 41; ....
MATHEMATICA
a = {1}; k = 2; Do[i = 1; While[i < n + 1, If[ GCD[k, n] == 1, a = Append[a, k]; i++ ]; k++ ], {n, 2, 12}]; a
PROG
(Haskell)
a071977 n k = a071977_tabl !! (n-1) !! (k-1)
a071977_row n = a071977_tabl !! (n-1)
a071977_tabl = f 1 [1..] where
f k xs = ys : f (k+1) (dropWhile (<= last ys) xs) where
ys = take k $ filter ((== 1) . (gcd k)) xs
-- Reinhard Zumkeller, Jan 18 2012
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Amarnath Murthy, Jun 18 2002
EXTENSIONS
Edited by Robert G. Wilson v, Jun 28 2002
STATUS
approved