login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A158515 Number of colors needed to paint a wheel graph on n nodes. 3
0, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
Adjacent nodes are not allowed to have the same color.
LINKS
Eric Weisstein's World of Mathematics, Wheel Graph
Wikipedia, Wheel graph
FORMULA
G.f.: x*(1+2*x+2*x^2+2*x^3)/(1-x^2)
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
Sequence in context: A182101 A242289 A349229 * A285884 A123709 A165482
KEYWORD
nonn
AUTHOR
Jaume Oliver Lafont, Mar 20 2009
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 17:49 EDT 2024. Contains 371797 sequences. (Running on oeis4.)