OFFSET
0,3
COMMENTS
Adjacent nodes are not allowed to have the same color.
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..1001
Eric Weisstein's World of Mathematics, Wheel Graph
Wikipedia, Wheel graph
Index entries for linear recurrences with constant coefficients, signature (0,1).
FORMULA
G.f.: x*(1+2*x+2*x^2+2*x^3)/(1-x^2)
MATHEMATICA
PadRight[{0, 1, 2}, 100, {4, 3}] (* Paolo Xausa, Apr 22 2024 *)
PROG
(PARI) a(n)=if(n<4, n, 4-n%2)
(Scheme) (define (A158515 n) (if (< n 4) n (- 4 (modulo n 2)))) ;; Antti Karttunen, Sep 14 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jaume Oliver Lafont, Mar 20 2009
STATUS
approved