login
A375417
a(1)=1; thereafter if n is odd we require that a(n) || a(n+1) be abundant and otherwise deficient. At each step, chose the smallest possible integer not yet in the sequence.
1
1, 2, 3, 0, 4, 8, 5, 6, 7, 14, 9, 10, 11, 16, 12, 18, 13, 20, 15, 24, 17, 22, 19, 26, 21, 28, 23, 34, 25, 30, 27, 36, 29, 40, 31, 32, 33, 42, 35, 46, 37, 38, 39, 44, 41, 52, 43, 50, 45, 48, 47, 58, 49, 56, 51, 54, 53, 55, 57, 60, 59, 64, 61, 62, 63, 66, 65, 70
OFFSET
1,2
COMMENTS
Conjecture: this is a permutation of the natural numbers.
EXAMPLE
a(1)=1 and n=1 is odd -> a(2)=2 because is the smallest number not yet in the sequence such that a(1) || a(2) = 12 is abundant.
Now n=2 is even -> a(3)=3 because is the smallest number not yet in the sequence such that a(2) || a(3) = 23 is deficient. And so on.
MAPLE
with(numtheory): P:=proc(q) local a, b, k, n; a:=[1, 2, 3, 0]; for n from 5 to q do
for k from 4 do if numboccur(k, a)=0 then b:=a[nops(a)]*10^length(k)+k;
if (n mod 2=0 and 2*b<sigma(b)) or (n mod 2=1 and 2*b>sigma(b)) then
a:=[op(a), k]; break; fi; fi; od; od; print(op(a)); end: P(100);
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Paolo P. Lava, Aug 14 2024
STATUS
approved