login
Locations of successive record-setters (maxima) in Hofstadter's Q-sequence
3

%I #11 Jun 02 2013 20:45:12

%S 1,3,4,6,7,9,12,15,18,20,24,31,35,38,41,43,48,63,77,80,81,84,87,90,96,

%T 115,118,121,124,135,152,157,160,165,171,174,179,184,192,223,235,253,

%U 269,278,286,298,311,314,320,321

%N Locations of successive record-setters (maxima) in Hofstadter's Q-sequence

%C A226244(n) = A005185(a(n)).

%H Reinhard Zumkeller, <a href="/A226245/b226245.txt">Table of n, a(n) for n = 1..1000</a>

%e a(8) = 15 because the first 15 terms of Hofstadter's Q-sequence are 1,1,2,3,3,4,5,5,6,6,6,8,8,8,10, and the 8th successive maximum is 10, which appears for the first time at position 15

%o (Haskell)

%o a226245 n = a226245_list !! (n-1)

%o -- See A226244: for definition of a226245_list.

%o -- _Reinhard Zumkeller_, Jun 02 2013

%Y Cf. A005185, A226244.

%K nonn

%O 1,2

%A _Jeffrey Shallit_, Jun 01 2013