OFFSET
0,7
COMMENTS
This sequence was constructed to show that there are many sequences, besides those merging with multiples of the Padovan sequence A000931, with the property that for any four consecutive terms the maximum term is the sum of the two minimum terms. This refutes a conjecture that was formerly in that entry.
LINKS
Michael De Vlieger, Table of n, a(n) for n = 0..10000
David Nacin, Van der Laan Sequences and a Conjecture on Padovan Numbers, J. Int. Seq., Vol. 26 (2023), Article 23.1.2.
Index entries for linear recurrences with constant coefficients, signature (0, 0, 1, 0, 0, 1).
FORMULA
EXAMPLE
For n=7, as n is 3(2)+1, a(n) = A000045(2+1) = 2.
MATHEMATICA
LinearRecurrence[{0, 0, 1, 0, 0, 1}, {1, 1, 0, 1, 1, 1}, 50]
PROG
(Python)
a = lambda x:[1, 1, 0, 1, 1, 1][x] if x<6 else a(x-3)+a(x-6)
(Racket)
(define (a x) (cond [(< x 6) (list-ref (list 1 1 0 1 1 1) x)]
[else (+ (a (- x 3)) (a (- x 6)))]))
(Sage)
s=((x^5 + x + 1)/(-x^6 - x^3 + 1)).series(x, 23); s.coefficients(x, sparse=False)
CROSSREFS
KEYWORD
nonn
AUTHOR
David Nacin, Nov 28 2019
STATUS
approved