The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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

%I #17 Aug 02 2019 20:54:16

%S 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,

%T 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,

%U 1,1,6,1,1,2,1,1,1,8,11,8,1,2,1,12,1,1,1,9

%N 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)).

%H Diana L. Mecum, <a href="/A128267/b128267.txt">Table of n, a(n) for n = 0..1677</a>

%e 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.

%Y Cf. A128268.

%K nonn

%O 0,3

%A _Leroy Quet_, Feb 22 2007

%E More terms from _Diana L. Mecum_, Aug 06 2012

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 1 06:21 EDT 2024. Contains 373012 sequences. (Running on oeis4.)