OFFSET
0,3
LINKS
P. Adams, D. Bryant and B. Maenhaut, Common multiples of graphs and a 4-cycle, Discrete Math., 275 (2004), 289-297.
FORMULA
See Maple code.
MAPLE
f:=proc(n) local i, j; j:=n*(n+1)/2; i := n mod 8; if i = 0 then RETURN((n+1)*j); fi; if i = 1 then RETURN(j); fi; if i = 2 then RETURN((n+2)*j); fi; if i = 3 then RETURN(4*j); fi; if i = 4 then RETURN((n+2)*j); fi; if i = 5 then RETURN(6*j); fi; if i = 6 then RETURN((n+2)*j); fi; if i = 7 then RETURN(8*j); fi; end;
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Nov 04 2004
STATUS
approved