OFFSET
0,4
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..16383
David Nacin, Van der Laan Sequences and a Conjecture on Padovan Numbers, J. Int. Seq., Vol. 26 (2023), Article 23.1.2.
MATHEMATICA
{3#+1, 1, 3#+1, 3#+2, 3#+2, 1, 3#+3, 3#+3}& /@ Range[0, 9] // Flatten (* Jean-François Alcover, Nov 24 2018, from Python *)
PROG
(Python)
l=list()
for a in range(10):
l+=[3*a+1, 1, 3*a+1, 3*a+2, 3*a+2, 1, 3*a+3, 3*a+3]
(PARI) a(n)={my(t=n\8*3); [t+1, 1, t+1, t+2, t+2, 1, t+3, t+3][n%8 + 1]} \\ Andrew Howroyd, Nov 19 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
David Nacin, Nov 05 2018
STATUS
approved