Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A026468
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A026468 a(1) = 1, a(2) = 2; for n >= 3, a(n) = least positive integer > a(n-1) and not a(i)^2 + a(j)^2 for 1<=i<=j<=n-1. +0
2
1, 2, 3, 4, 6, 7, 9, 11, 12, 14, 15, 16, 19, 21, 22, 23, 24, 26, 27, 28, 29, 30, 31, 33, 34, 35, 36, 38, 39, 41, 42, 43, 44, 46, 47, 48, 49, 51, 54, 55, 56, 57, 59, 60, 61, 62, 63, 64, 66, 67, 68, 69, 70, 71, 73, 74, 75, 76, 77, 78 (list; graph; listen)
OFFSET

1,2

MAPLE

# return true if 'candid' is allowed (not a sum of squares)

A026469aux := proc(a, candid) local i, j; for j from 1 to nops(a) do for i from 1 to j do if (op(i, a))^2+(op(j, a))^2 = candid then RETURN(false); fi; od; od; RETURN(true); end:

A026468 := proc(nmax) local a, candidat; a := [1, 2]; while nops(a) < nmax do candidat := op(nops(a), a)+1; while A026469aux(a, candidat) = false do candidat := candidat+1; od; a := [op(a), candidat]; od: RETURN(a); end: A026468(60); (from R. J. Mathar, Nov 01 2006)

CROSSREFS

Cf. A026469.

Sequence in context: A071689 A076679 A060233 this_sequence A056176 A087072 A022825

Adjacent sequences: A026465 A026466 A026467 this_sequence A026469 A026470 A026471

KEYWORD

nonn

AUTHOR

Clark Kimberling (ck6(AT)evansville.edu)

EXTENSIONS

Definition corrected by Ralf Stephan, Nov 01 2006

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