Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A080341
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A080341 Sum of the n first terms that are congruent to 1, 4 or 5 mod 6 (A047259). +0
1
1, 5, 10, 17, 27, 38, 51, 67, 84, 103, 125, 148, 173, 201, 230, 261, 295, 330, 367, 407, 448, 491, 537, 584, 633, 685, 738, 793, 851, 910, 971, 1035, 1100, 1167, 1237, 1308, 1381, 1457, 1534, 1613, 1695, 1778, 1863, 1951, 2040, 2131, 2225, 2320, 2417 (list; graph; listen)
OFFSET

1,2

COMMENT

Number of edges needed in a sector of a hexagon of size n paved by rhombi coming from triangular/hexagonal lattices.

FORMULA

n^2+(n+1)/3 with integer division, that is n mod 3 = 0 : n^2+n/3 n mod 3 = 1 : n^2+(n-1)/3 n mod 3 = 2 : n^2+(n+1)/3

PROGRAM

// java or beanShell script for(int i=1, s=m=0; i<40; i++) { m= i%6; if((m==1)||(m==4)||(m==5)) System.out.print((s+=i)+", "); } for(int i=1; i<20; i++) System.out.print((i*i+(i+1)/3)+" ");

CROSSREFS

Cf. A047259.

Adjacent sequences: A080338 A080339 A080340 this_sequence A080342 A080343 A080344

Sequence in context: A098749 A034676 A076598 this_sequence A086653 A020642 A067253

KEYWORD

easy,nonn

AUTHOR

Christian Mercat (Integer.Sequence(AT)entrelacs.net), Mar 20 2003

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 October 11 13:47 EDT 2008. Contains 144830 sequences.


AT&T Labs Research