|
|
A128267
|
|
a(0) = 1; a(n) = gcd((number of earlier terms which are coprime to n), (sum of the earlier terms which are coprime to n)).
|
|
2
|
|
|
1, 1, 2, 1, 3, 1, 4, 1, 2, 1, 1, 1, 8, 1, 2, 1, 1, 1, 12, 1, 2, 1, 1, 1, 16, 1, 2, 5, 1, 1, 19, 1, 1, 1, 1, 1, 2, 1, 3, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 2, 2, 1, 1, 1, 1, 6, 1, 1, 2, 1, 1, 1, 8, 11, 8, 1, 2, 1, 12, 1, 1, 1, 9
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
LINKS
|
|
|
EXAMPLE
|
The terms among {a(0),a(1),...,a(7)} that are coprime to 8 are a(0)=1, a(1)=1, a(3)=1, a(4)=3, a(5)=1 and a(7)=1. There are 6 such terms and the sum of these terms is 8. So a(8) = gcd(6,8) = 2.
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|