login
A379896
a(n) is the least number k whose digit sums are 2*n-1, 2*n and 2*n+1 in bases 2*n-1, 2*n and 2*n+1 respectively.
1
13, 61, 169, 13321, 4621, 14197, 5041, 7345, 10261, 13861, 18217, 23401, 29485, 36541, 74401, 89761, 107101, 126541, 148201, 172201, 198661, 227701, 259441, 294001, 331501, 520885, 582121, 647977, 718621, 794221, 874945, 960961, 1052437, 1149541, 1252441, 1361305, 1898101, 2054053, 2218321
OFFSET
2,1
COMMENTS
a(n) == 1 mod n*(4*n^2-1) and is odd.
It is impossible for k to have digit sums b, b+1 and b+2 in bases b, b+1 and b+2 if b is even: see link.
LINKS
R. Israel and C. Lin, Sums of digits in three consecutive bases, Mathematics StackExchange, Jan 05 2025.
EXAMPLE
a(3) = 169 because 169 = 331_7 = 251_8 = 207_9 has digit sums 7, 8, 9 in bases 7, 8, 9 respectively, and 169 is the least number that works.
MAPLE
f:= proc(b) local a, x;
for a from 1 by 2 to 10^7 do
x:= a*(b^3-b)/2+1;
if andmap(t -> convert(convert(x, base, t), `+`)=t, [b, b+1, b+2]) then return x fi
od;
FAIL
end proc:
map(f, [seq(b, b=3..200, 2)]);
CROSSREFS
Cf. A379749.
Sequence in context: A081589 A270449 A139880 * A127876 A361657 A308461
KEYWORD
nonn,base
AUTHOR
Robert Israel, Jan 05 2025
STATUS
approved