Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A123663
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A123663 Number of shared edges in a spiral of n unit squares. +0
1
0, 1, 2, 4, 5, 7, 8, 10, 12, 13, 15, 17, 18, 20, 22, 24, 25, 27, 29, 31, 32, 34, 36, 38, 40, 41, 43, 45, 47, 49, 50, 52, 54, 56, 58, 60, 61, 63, 65, 67, 69, 71, 72, 74, 76, 78, 80, 82, 84, 85, 87, 89, 91, 93, 95, 97, 98, 100, 102, 104, 106, 108, 110, 112, 113, 115, 117, 119 (list; graph; listen)
OFFSET

1,3

COMMENT

If one constructs a square (square 1) and then draws another square of identical size beside it (square 2), the squares share 1 edge. If one then places an identical square above square 2 (instead of continuing in a straight path), there are now 2 shared edges. Continuing this pattern in an outward spiral, one finds that the number of shared edges is 4, 5, 7, ...

MATHEMATICA

FoldList[Plus, 0, t = Table[2, {72}]; t[[ Table[ Ceiling[n/2] Floor[n/2], {n, 2, 16}] ]]--; t] (* Robert G. Wilson v *)

CROSSREFS

Cf. A002620.

Adjacent sequences: A123660 A123661 A123662 this_sequence A123664 A123665 A123666

Sequence in context: A139449 A020914 A047496 this_sequence A014248 A091627 A027902

KEYWORD

easy,nonn

AUTHOR

Zacariaz Martinez (euneirophrenia(AT)gmail.com), Nov 15 2006

EXTENSIONS

Extended by Robert G. Wilson v (rgwv(AT)rgwv.com), Jan 19 2007

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 10 20:39 EDT 2008. Contains 144831 sequences.


AT&T Labs Research