OFFSET
1,3
LINKS
Reinhard Zumkeller, Rows n=1..1000 of triangle, flattened
EXAMPLE
Triangle begins:
. 1: [1]
. 2: [1, 2]
. 3: [1, 3]
. 4: [1, 2]
. 5: [1, 5]
. 6: [1, 2, 3, 6]
. 7: [1, 7]
. 8: [1, 2]
. 9: [1, 3]
. 10: [1, 2, 5, 10]
. 11: [1, 11]
. 12: [1, 2, 3, 6].
MAPLE
A206778 := proc(n)
local sqdvs , nfac, d;
sqdvs := {} ;
nfac := ifactors(n)[2] ;
for d in numtheory[divisors](n) do
if issqrfree(d) then
sqdvs := sqdvs union {d} ;
end if;
end do:
sort(sqdvs) ;
end proc:
seq(op(A206778(n)), n=1..10) ; # R. J. Mathar, Mar 06 2023
MATHEMATICA
Flatten[Table[Select[Divisors[n], SquareFreeQ], {n, 30}]] (* Harvey P. Dale, Apr 11 2012 *)
PROG
(Haskell)
a206778 n k = a206778_row n !! k
a206778_row = filter ((== 1) . a008966) . a027750_row
a206778_tabf = map a206778_row [1..]
Reinhard Zumkeller, May 03 2013, Feb 12 2012
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Reinhard Zumkeller, Feb 12 2012
STATUS
approved