A141000 Numbers k for which there is a solution to the Jumping Grasshopper game.
0, 1, 4, 9, 13, 16, 20, 21, 24, 25, 28, 29, 32, 33, 36, 37, 40, 41, 44, 45, 48, 49, 52, 53, 56, 57, 60, 61, 64, 65, 68, 69, 72, 73, 76, 77, 80, 81, 84, 85, 88, 89, 92, 93, 96, 97, 100, 101, 104, 105, 108, 109, 112, 113, 116, 117, 120, 121, 124, 125, 128, 129, 132, 133
Offset: 1
Examples
4 is a member because we can take s_1 = s_2 = s_4 = +1, s_3 = -1. Note in particular that 1 + 2 -3 + 4 = 4. (See the illustration.)
References
- Ivan Moscovich, "MATH - Isn't It Beautiful!", 2009.
Links
- David Applegate, Notes on A141000.
- Ivan Moscovich, Grasshop Puzzle-Game.
- Index entries for linear recurrences with constant coefficients, signature (1,1,-1).
Programs
-
Mathematica
{0, 1, 4, 9, 13, 16}~Join~LinearRecurrence[{1, 1, -1}, {20, 21, 24}, 58] (* Jean-François Alcover, Nov 20 2019 *) LinearRecurrence[{1,1,-1},{0,1,4,9,13,16,20,21,24},70] (* Harvey P. Dale, Mar 22 2025 *)
-
Tcl
# See the notes by D. Applegate above.
Formula
From Colin Barker, May 19 2013: (Start)
a(n) = (11 - (-1)^n + 4*n)/2 for n > 6.
a(n) = a(n-1) + a(n-2) - a(n-3) for n > 9.
G.f.: -x^2*(x^7+2*x^6+2*x^4-x^3-4*x^2-3*x-1) / ((x-1)^2*(x+1)). (End)
Comments