login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A304274
The concatenation of the first n elements is the largest positive even number with n digits when written in base 3/2.
3
2, 1, 2, 2, 1, 1, 1, 2, 2, 1, 2, 1, 1, 2, 2, 1, 2, 1, 2, 1, 1, 2, 2, 1, 2, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 2, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 2, 2, 2, 2, 1, 1, 2, 2, 1, 2, 1, 2, 2, 1, 2, 1, 2, 1, 1, 2, 1, 1, 2, 2, 2, 2, 1, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1, 2, 1, 1, 1, 1, 1, 2, 2, 1, 2, 2, 1, 2, 1, 2, 2, 1, 1, 2
OFFSET
1,1
COMMENTS
This sequence is possible due to the fact that the largest even integers are prefixes of each other.
A304272(n) is the largest even integer with n digits.
LINKS
B. Chen, R. Chen, J. Guo, S. Lee et al., On Base 3/2 and its Sequences, arXiv:1808.04304 [math.NT], 2018.
FORMULA
a(n) = A304273(n+1) + 1.
From Alois P. Heinz, Jun 21 2018: (Start)
a(n) = A305498(n+1) -3/2*A305498(n) + 1.
Sum_{i=0..n-1} (3/2)^i*a(n-i) = A305497(n). (End)
EXAMPLE
Number 8 in base 3/2 is 212, and it is the largest even integer with 3 digits in base 3/2. Its prefix 21 is 4: the largest even integer with 2 digits in base 3/2.
MAPLE
b:= proc(n) option remember; `if`(n=1, 2,
(t-> t+irem(t, 2))(b(n-1)*3/2))
end:
a:= n-> b(n+1)-3/2*b(n)+1:
seq(a(n), n=1..120); # Alois P. Heinz, Jun 21 2018
MATHEMATICA
b[n_] := b[n] = If[n == 1, 2, Function[t, t + Mod[t, 2]][3/2 b[n-1]]];
a[n_] := b[n+1] - 3/2 b[n] + 1;
Array[a, 120] (* Jean-François Alcover, Dec 13 2018, after Alois P. Heinz *)
KEYWORD
nonn,base
AUTHOR
Tanya Khovanova and PRIMES STEP Senior group, May 09 2018
EXTENSIONS
More terms from Alois P. Heinz, Jun 21 2018
STATUS
approved