OFFSET
1,2
LINKS
Peter Kagey, Table of n, a(n) for n = 1..10000
EXAMPLE
A000027 read by antidiagonals is:
1 2 4 7
3 5 8
6 9
...
Thus:
Row 1: []
Row 2: []
Row 3: []
Row 4: []
Row 5: [1]
Row 6: []
Row 7: []
Row 8: [2]
Row 9: [3]
MATHEMATICA
nn = 58; t = Table[(n^2 - n)/2 + Accumulate@ Range[n - 1, Ceiling[(Sqrt[9 + 8 nn] - 3)/2]] + 1, {n, Ceiling[(Sqrt[9 + 8 nn] - 3)/2] + 1}]; Table[Rest@ Map[t[[#1, #2]] & @@ # &, Most@ NestWhileList[# - 1 &, #, ! MemberQ[#, 0] &]] &@ First@ Position[t, n], {n, nn}] // Flatten (* Michael De Vlieger, Jun 29 2016 *)
PROG
(Haskell)
a273825 n = genericIndex a273825_list (n - 1)
a273825_list = concatMap a273825_row [1..]
a273825_tabf = map a273825_row [1..]
a273825_row n
| a_i == 0 = []
| otherwise = a_i : a273825_row a_i where
a_i = a271439 $ a271439 (n - 1)
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Peter Kagey, Jun 08 2016
STATUS
approved