Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A047838
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A047838 [n^2/2]-1. +0
5
1, 3, 7, 11, 17, 23, 31, 39, 49, 59, 71, 83, 97, 111, 127, 143, 161, 179, 199, 219, 241, 263, 287, 311, 337, 363, 391, 419, 449, 479, 511, 543, 577, 611, 647, 683, 721, 759, 799, 839, 881, 923, 967, 1011, 1057, 1103, 1151, 1199, 1249, 1299, 1351, 1403 (list; graph; listen)
OFFSET

2,2

COMMENT

Define the organization number of a permutation pi_1, pi_2, ..., pi_n to be the following. Start at 1, count the steps to reach 2, then the steps to reach 3, etc. Add them up. Then the maximal value of the organization number of any permutation of [1..n] for n = 0, 1, 2, 3, ... is given by 0, 1, 3, 7, 11, 17, 23, ... (this sequence). This was established by Graham Cormode (graham(AT)research.att.com), Aug 17 2006, see link below, answering a question raised by Tom Young (mcgreg265(AT)msn.com) and Barry Cipra, Aug 15 2006.

Comment from Dmitry Kamenetsky (Dmitry.Kamenetsky(AT)rsise.anu.edu.au), Nov 29 2006: This is the length of the longest non self-intersecting spiral drawn on an N X N grid. E.g. for n=5 the spiral has length 17:

10111

10101

10101

10001

11111

LINKS

Graham Cormode, Notes on the organization number of a permutation.

FORMULA

a(2)=1; for n>2, a(n)=a(n-1)+n-1+(n-1 mod 2). - Benoit Cloitre (benoit7848c(AT)orange.fr), Jan 12 2003

T(n-1) + floor(n/2) - 1 = T(n) - floor((n+3)/2) where T(n) is the n-th triangular number (A000217). - Robert G. Wilson v, Aug 31 2006.

Equals (n-1)-th row sums of triangles A134151 and A135152. Also, = binomial transform of [1, 2, 2, -2, 4, -8, 16, -32,...]. - Gary W. Adamson (qntmpkt(AT)yahoo.com), Nov 21 2007

MATHEMATICA

Table[ Floor[n^2/2] - 1, {n, 2, 60}] (* Robert G. Wilson v, Aug 31 2006 *)

PROGRAM

(PARI) a(n)=if(n<2, 0, n^2\2-1)

CROSSREFS

Complement of A047839. Also A007590 - 1. First differences give A052928.

Cf. A135151, A135152.

Sequence in context: A081515 A023234 A134707 this_sequence A029715 A088803 A088206

Adjacent sequences: A047835 A047836 A047837 this_sequence A047839 A047840 A047841

KEYWORD

nonn

AUTHOR

Michael Somos

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 25 07:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research