OFFSET
0,2
COMMENTS
LFSR with primes.
Is it true that Lim a(n)/prime(n) < square root(3)?
REFERENCES
T. Herlestam, On functions of linear shift register sequences. Springer Lecture notes in computer sciences, ISBN 978-3-540-16468-5.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Georg Schmidt and Vladimir R. Sidorenko, Linear Shift-Register Synthesis for Multiple Sequences of Varying Length, arXiv:cs/0605044 [cs.IT], 2001.
Boaz Tsaban and Uzi Vishne, Efficient linear feedback shift registers with maximal period, arXiv:cs/0304010 [cs.CR], 2003.
MAPLE
A134440 := proc(n)
option remember;
if n =0 then
1;
elif type(procname(n-1), 'odd') then
procname(n-1)+ithprime(n) ;
else
procname(n-1)/2 ;
end if;
end proc: # R. J. Mathar, Jun 20 2021
MATHEMATICA
nxt[{n_, a_}]:={n+1, If[OddQ[a], a+Prime[n+1], a/2]}; Transpose[ NestList[ nxt, {0, 1}, 70]][[2]] (* Harvey P. Dale, Jan 12 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Ctibor O. Zizka, Jan 18 2008
EXTENSIONS
Offset corrected by R. J. Mathar, Jun 20 2021
STATUS
approved