OFFSET
1,3
COMMENTS
LINKS
Reinhard Zumkeller, Rows n = 1..125 of triangle, flattened
EXAMPLE
1;
1, 3;
1, 2, 4;
1, 3, 5, 7;
1, 2, 3, 4, 6;
1, 5, 7, 11, 13, 17;
1, 2, 3, 4, 5, 6, 8;
1, 3, 5, 7, 9, ...
MATHEMATICA
row[n_] := Take[Select[Range[n^2], GCD[ #, n]==1&], n]; Join@@row/@Range[13]
PROG
(Haskell)
a077581 n k = a077581_tabl !! (n-1) !! (k-1)
a077581_row n = a077581_tabl !! (n-1)
a077581_tabl = map (\x -> take x [z | z <- [1..], gcd x z == 1]) [1..]
-- Reinhard Zumkeller, Sep 26 2014
CROSSREFS
AUTHOR
Amarnath Murthy, Nov 14 2002
EXTENSIONS
More terms from Sascha Kurz, Jan 11 2003
STATUS
approved