|
|
A082844
|
|
Start with 3,2 and apply the rule a(a(1)+a(2)+...+a(n)) = a(n), fill in any undefined terms with a(t) = 2 if a(t-1) = 3 and a(t) = 3 if a(t-1) = 2.
|
|
13
|
|
|
3, 2, 3, 2, 2, 3, 2, 3, 2, 2, 3, 2, 3, 2, 3, 2, 2, 3, 2, 3, 2, 2, 3, 2, 3, 2, 3, 2, 2, 3, 2, 3, 2, 2, 3, 2, 3, 2, 2, 3, 2, 3, 2, 3, 2, 2, 3, 2, 3, 2, 2, 3, 2, 3, 2, 3, 2, 2, 3, 2, 3, 2, 2, 3, 2, 3, 2, 2, 3, 2, 3, 2, 3, 2, 2, 3, 2, 3, 2, 2, 3, 2, 3, 2, 3, 2, 2, 3, 2, 3, 2, 2, 3, 2, 3, 2, 3, 2, 2, 3, 2, 3, 2, 2, 3
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
a(1)=3, a(2)=2, a(a(1)+a(2)+...+a(n)) = a(n) and a(a(1)+a(2)+...+a(n)+1) = 5-a(n).
More generally, sequence a(n) = floor(r*(n+2))-floor(r*(n+1)), r = (1/2) *(z+sqrt(z^2+4)), z integer >=1, is defined with a(1), a(2) and a(a(1)+a(2)+...+a(n)+f(z)) = a(n); a(a(1)+a(2)+...+a(n)+f(z)+1) = (2z+1)-a(n) where f(1)=0, f(z)=z-2 for z>=2.
Theorem: Referring to the solution to Problem B6 in the 81st William Lowell Putnam Mathematical Competition (see link), in the notation of the first solution, the sequence a(n) = c_{n+1} indexed from 1 equals the present sequence, A082844. - Manjul Bhargava, Kiran Kedlaya, and Lenny Ng, Sep 09 2021.
|
|
LINKS
|
|
|
FORMULA
|
a(n) = floor(r*(n+2))-floor(r*(n+1)) where r=1+sqrt(2).
|
|
MAPLE
|
|
|
MATHEMATICA
|
With[{r=1+Sqrt[2]}, Table[Floor[r*(n+2)]-Floor[r*(n+1)], {n, 110}]] (* Harvey P. Dale, Oct 10 2012 *)
|
|
PROG
|
(Magma) [Floor((1+Sqrt(2))*(n+2))-Floor((1+Sqrt(2))*(n+1)) : n in [1..100]]; // Wesley Ivan Hurt, Mar 13 2016
|
|
CROSSREFS
|
The following sequences are all essentially the same, in the sense that they are simple transformations of each other, with A003151 as the parent: A003151, A001951, A001952, A003152, A006337, A080763, A082844 (conjectured), A097509, A159684, A188037, A245219 (conjectured), A276862. - N. J. A. Sloane, Mar 09 2021
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|