OFFSET
1,1
COMMENTS
Odd numbers that do not divide any term of A000213. - N. J. A. Sloane, Aug 23 2012
LINKS
T. D. Noe, Table of n, a(n) for n = 1..1000
Project Euler, Problem #225: Tribonacci non-divisors
MATHEMATICA
t = {}; Do[a = {1, 1, 1}; a0 = a; done = False; While[s = Total[a]; a = RotateLeft[a]; a[[-1]] = Mod[s, n]; If[a[[-1]] == 0, done = True]; a != a0 && ! done]; If[! done, AppendTo[t, n]], {n, 1, 1087, 2}]; t (* T. D. Noe, Aug 28 2012 *)
PROG
(PARI) is(n)=if(n%2==0 || n<9, return(0)); my(a=1, b=1, c=3, t=4); while(c!=1 || b!=1 || a!=1, [a, b, c]=[b, c, (a+b+c)%n]; if(c==0, return(0))); 1 \\ Charles R Greathouse IV, Jan 12 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
V. Raman, Aug 23 2012
STATUS
approved