|
|
A166695
|
|
Alternating smallest odd/even number not in list followed by that number of consecutive odd/even numbers, sequence commencing with 1.
|
|
1
|
|
|
1, 3, 2, 4, 6, 5, 7, 9, 11, 13, 15, 8, 10, 12, 14, 16, 18, 20, 22, 24, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 53, 55, 57, 59, 61, 63, 65
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
MAPLE
|
R:= NULL: x:= -1: y:= 0: count:= 0: m:= 1:
while count < 100 do
if m = 1 then
R:= R, x+2, seq(x+2*(i+1), i=1..(x+2));
count:= count + x+3;
x:= R[-1]
else
R:= R, y+2, seq(y+2*(i+1), i=1..(y+2));
count:=count + y+3;
y:= R[-1];
fi;
m:= 1-m;
od:
|
|
CROSSREFS
|
|
|
KEYWORD
|
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|