cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-2 of 2 results.

A286389 a(0) = 0; a(n) = n - a(floor(a(n-1)/2)).

Original entry on oeis.org

0, 1, 2, 2, 3, 4, 4, 5, 6, 7, 8, 8, 9, 10, 10, 11, 12, 13, 14, 14, 15, 16, 16, 17, 18, 18, 19, 20, 20, 21, 22, 23, 24, 24, 25, 26, 26, 27, 28, 29, 30, 30, 31, 32, 32, 33, 34, 34, 35, 36, 36, 37, 38, 39, 40, 40, 41, 42, 42, 43, 44, 45, 46, 46, 47, 48, 48, 49, 50, 51, 52, 52, 53, 54, 54, 55, 56, 57, 58, 58
Offset: 0

Views

Author

Ilya Gutkovskiy, May 24 2017

Keywords

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

Crossrefs

Programs

  • Mathematica
    a[0] = 0; a[n_] := a[n] = n - a[Floor[a[n - 1]/2]]; Array[a, 80, 0]
  • PARI
    a(n)=if(n>0,return(n-a(floor(a(n-1)/2))));return(0); \\ Anton Mosunov, May 26 2017

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)

A138467 a(1)=1, then for n>=2 a(n) = n - floor((1/3)*a(a(n-1))).

Original entry on oeis.org

1, 2, 3, 3, 4, 5, 6, 7, 7, 8, 9, 10, 11, 11, 12, 13, 14, 15, 15, 16, 17, 18, 18, 19, 20, 21, 22, 22, 23, 24, 25, 26, 26, 27, 28, 29, 30, 30, 31, 32, 33, 34, 34, 35, 36, 37, 37, 38, 39, 40, 41, 41, 42, 43, 44, 45, 45, 46, 47, 48, 49, 49, 50, 51, 52, 53, 53, 54, 55, 56, 56, 57, 58
Offset: 1

Views

Author

Benoit Cloitre, May 09 2008

Keywords

Comments

For k >= 1, a(1)=1; a(n) = n - floor((1/k)*a(a(n-1))). - Yalcin Aktar, Jul 13 2008
Conjecture: a(n) = floor(r(p)*(n+1)) with r(p)=(1/2)*(sqrt(p*(p+4))-p). - Yalcin Aktar, Jul 13 2008
From Michel Dekking, Jul 13 2023: (Start)
Here is a correction of these two comments from July 13, 2008:
Consider the following generalization of (a(n)).
Let p>2 be a natural number, and define the sequence b_p by
b_p = 1, b_p(n) = n - floor((1/p)*b_p (b_p (n-1)) for n>1.
Conjecture: b_p(n) = floor(r(p)*(n+1)) where r(p) =(1/2)*(sqrt(p*(p+4))-p).(End)

Crossrefs

Programs

  • PARI
    a(n)=floor((3/2)*(sqrt(7/3)-1)*(n+1))

Formula

For n>=1, a(n) = floor(r*(n+1)) where r=(3/2)*(sqrt(7/3)-1).

Extensions

More terms from Yalcin Aktar, Jul 13 2008
Showing 1-2 of 2 results.