OFFSET
1,4
COMMENTS
LINKS
Reinhard Zumkeller, Rows n = 1..2500 of triangle, flattened
EXAMPLE
The triangle begins:
. 1 {1}
. 2 {1}
. 3 {1,3}
. 4 {1}
. 5 {1,5}
. 6 {1,3}
. 7 {1,7}
. 8 {1}
. 9 {1,3,9}
. 10 {1,5}
. 11 {1,11}
. 12 {1,3}
. 13 {1,13}
. 14 {1,7}
. 15 {1,3,5,15}
. 16 {1} .
MATHEMATICA
Flatten[Table[Select[Divisors[n], OddQ], {n, 40}]] (* Harvey P. Dale, Aug 13 2012 *)
PROG
(Haskell)
a182469 n k = a182469_tabf !! (n-1) !! (k-1)
a182469_row = a027750_row . a000265
a182469_tabf = map a182469_row [1..]
(PARI) tabf(nn) = {for (n=1, nn, fordiv(n, d, if (d%2, print1(d, ", "))); print(); ); } \\ Michel Marcus, Apr 22 2017
(Python)
from sympy import divisors
def row(n):
return [d for d in divisors(n) if d % 2]
for n in range(1, 21): print(row(n)) # Indranil Ghosh, Apr 22 2017
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Reinhard Zumkeller, Apr 30 2012
STATUS
approved