OFFSET
0,3
COMMENTS
A variation on Hofstadter's G-sequence.
Conjecture: partial sums of A285431 (verified for n <= 400). - Sean A. Irvine, Jul 20 2022
The conjecture has been verified for n <= 50000. - Michel Dekking, Jul 06 2023
Irvine's conjecture is now proven using the Walnut theorem prover. - Jeffrey Shallit, Oct 21 2023
LINKS
Anton Mosunov, Table of n, a(n) for n = 0..400
Jeffrey Shallit, Proof of Irvine's conjecture via mechanized guessing, arXiv preprint arXiv:2310.14252 [math.CO], October 22 2023.
FORMULA
Conjecture: a(n) ~ c*n, where c = sqrt(3) - 1 = 0.732050807...
From Michel Dekking, Jul 06 2023: (Start)
This conjecture is implied by the conjecture in the COMMENTS, by a simple application of the Perron-Frobenius Theorem.
The vector (1, 1 + sqrt(3)) is a right eigenvector of the incidence matrix of the morphism 0->11, 1->110. Therefore the frequency of 1 in A285431 is equal to sqrt(3) - 1. So if the conjecture in the COMMENTS is true, then this implies that a(n)/n converges to sqrt(3) - 1. (End)
MATHEMATICA
a[0] = 0; a[n_] := a[n] = n - a[Floor[a[n - 1]/2]]; Array[a, 80, 0]
PROG
(PARI) a(n)=if(n>0, return(n-a(floor(a(n-1)/2)))); return(0); \\ Anton Mosunov, May 26 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, May 24 2017
STATUS
approved