# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/
Search: id:a136347
Showing 1-1 of 1
%I A136347 #11 Aug 02 2018 17:07:49
%S A136347 1,1,2,2,2,5,6,6,6,6,3,4,4,4,4,4,15,15,15,15,15,15,3,3,3,3,3,3,3,29,
%T A136347 30,31,32,33,34,35,35,35,35,35,35,35,35,28,28,28,28,28,28,28,28,28,32,
%U A136347 33,33,33,33,33,33,33,33,33,33,23,24,24,24,24,24,24,24
%N A136347 a(1)=1. Let m be the number of terms in the longest run of consecutive equal terms from among the first n terms of the sequence. a(n+1) = the number of terms, from among the first n terms of the sequence, that are coprime to m.
%H A136347 Rémy Sigrist, Table of n, a(n) for n = 1..10000
%H A136347 Rémy Sigrist, PARI program for A136347
%e A136347 Among the first 30 terms of the sequence the run of seven 3's (from a(23) to a(29)) is the longest run of consecutive equal terms. (So m = 7.) Among the first 30 terms of the sequence, all 30 terms are coprime to 7. So a(31) = 30.
%o A136347 (PARI) See Links section.
%Y A136347 Cf. A136348.
%K A136347 nonn,look
%O A136347 1,3
%A A136347 _Leroy Quet_, Dec 25 2007
%E A136347 More terms from _Rémy Sigrist_, Aug 02 2018
# Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE