Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A160844
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A160844 Number of lines through at least 2 points of an 4 X n grid of points +0
1
0, 1, 18, 35, 62, 93, 136, 181, 238, 299, 370, 445, 532, 621, 722, 827, 942, 1061, 1192, 1325, 1470, 1619, 1778, 1941, 2116, 2293, 2482, 2675, 2878, 3085, 3304, 3525, 3758, 3995, 4242, 4493, 4756, 5021, 5298, 5579, 5870, 6165, 6472, 6781, 7102, 7427, 7762 (list; graph; listen)
OFFSET

0,3

LINKS

S. Mustonen, On lines and their intersection points in a rectangular grid of points

FORMULA

a(n)=2*a(n-1)-a(n-2)+C(mod(n+2,6)+1)), C=(10,4,12,2,12,4)

MATHEMATICA

a[0]=0; a[1]=1; a[2]=18; a[3]=35; a[n_]:=a[n]=a[n]=2*a[n-1]-a[n-2]+R[n] c4={10, 4, 12, 2, 12, 4}; R[n_]:=c4[[Mod[n+2, 6]+1]] Table[a[n], {n, 0, 46}]

CROSSREFS

Sequence in context: A044063 A044444 A014640 this_sequence A040306 A073332 A109428

Adjacent sequences: A160841 A160842 A160843 this_sequence A160845 A160846 A160847

KEYWORD

nonn

AUTHOR

Seppo Mustonen (seppo.mustonen(AT)helsinki.fi), May 28 2009

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 December 8 08:31 EST 2009. Contains 170430 sequences.


AT&T Labs Research