OFFSET
0,12
REFERENCES
Kenneth H. Rosen, Discrete Mathematics and its Applications, McGraw-Hill, 2012, 501-503.
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,1,0,0,0,1).
FORMULA
G.f.: (x^6 + x^5 + x^4 + x^3 + x^2 + x + 1)/(1 - x^7 - x^11). - R. J. Mathar and N. J. A. Sloane, Nov 10 2017
MATHEMATICA
LinearRecurrence[{0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, 80] (* Harvey P. Dale, Oct 09 2018 *)
PROG
(Java)
import java.util.Arrays;
public class IntegerSequences
{
public static void main(String[] args)
{
int j = 7;
int k = 11;
// Set N to the number of terms you would like to generate.
int N = 200;
long[] G = new long[N];
for(int i=0; i<k; i++)
{
G[i] = 1;
}
for(int i=k; i<N; i++)
{
G[i] = G[i-j]+G[i-k];
}
System.out.println(Arrays.toString(G));
}
}
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jason Bruce, Sep 07 2017
STATUS
approved