Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A008782
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A008782 For any circular arrangement of 0..n-1, let S = sum of squares of every sum of three contiguous numbers; then a(n) = # of distinct values of S. +0
2
1, 1, 1, 1, 8, 17, 55, 110, 184, 272 (list; graph; listen)
OFFSET

1,5

MAPLE

A008782 := proc(n) local S, i, j, sumsq, npermut, p, per ; S := {} ; npermut := combinat[permute]([seq(i, i=0..n-1)]) ; for p from 1 to nops(npermut) do per := op(p, npermut) ; sumsq := 0 ; for i from 0 to n-1 do sumsq := sumsq + (add(op(1+(j mod n), per), j=i..i+2)) ^2 ; od ; S := S union {sumsq} ; od ; RETURN(nops(S)) ; end: for n from 1 to 20 do print(A008782(n)) ; od : - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Jun 18 2007

CROSSREFS

Cf. A007773.

Sequence in context: A041124 A048695 A111325 this_sequence A097058 A134790 A097405

Adjacent sequences: A008779 A008780 A008781 this_sequence A008783 A008784 A008785

KEYWORD

nonn,more

AUTHOR

Olivier Gerard (ogerard(AT)ext.jussieu.fr)

EXTENSIONS

More terms from Reiner Martin (reinermartin(AT)hotmail.com), May 19 2001

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified July 26 13:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research