|
|
A136178
|
|
Irregular array read by rows: row n contains the GCDs of each pair of consecutive positive divisors of n.
|
|
4
|
|
|
1, 1, 1, 2, 1, 1, 1, 3, 1, 1, 2, 4, 1, 3, 1, 1, 5, 1, 1, 1, 1, 2, 6, 1, 1, 1, 7, 1, 1, 5, 1, 2, 4, 8, 1, 1, 1, 3, 3, 9, 1, 1, 2, 1, 5, 10, 1, 1, 7, 1, 1, 11, 1, 1, 1, 1, 2, 2, 4, 12, 1, 5, 1, 1, 13, 1, 3, 9, 1, 2, 1, 7, 14, 1, 1, 1, 1, 1, 2, 5, 15, 1, 1, 2, 4, 8, 16, 1, 1, 11, 1, 1, 17, 1, 1, 7, 1, 1, 1, 2, 3
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
2,4
|
|
COMMENTS
|
Each row has d(n)-1 terms, where d(n) is the number of positive divisors of n. The first row listed is row 2.
|
|
LINKS
|
|
|
EXAMPLE
|
The positive divisors of 20 are 1,2,4,5,10,20. GCD(1,2)=1. GCD(2,4)=2. GCD(4,5)=1. GCD(5,10)=5. And GCD(10,20)=10. So row 20 is (1,2,1,5,10).
The table starts
1
1
1,2
1
1,1,3
1
1,2,4
1,3
1,1,5
1
1,1,1,2,6
(End)
|
|
MAPLE
|
A136178row := proc(n) local dvs; dvs := sort(convert(numtheory[divisors](n), list)) ; seq(gcd(op(d-1, dvs), op(d, dvs)), d=2..nops(dvs)) ; end: seq(A136178row (n), n=1..70) ; # R. J. Mathar, Jul 20 2009
|
|
MATHEMATICA
|
Table[Map[GCD @@ # &, Partition[Divisors@ n, 2, 1]], {n, 2, 36}] // Flatten (* Michael De Vlieger, Sep 21 2017 *)
|
|
PROG
|
(PARI) row(n) = my(d=divisors(n)); vector(#d-1, k, gcd(d[k], d[k+1]));
tabf(nn) = for(n=2, nn, print(row(n))); \\ Michel Marcus, Sep 22 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,tabf
|
|
AUTHOR
|
|
|
EXTENSIONS
|
Keyword:tabl replaced with keyword:tabf by R. J. Mathar, Jul 22 2009
|
|
STATUS
|
approved
|
|
|
|