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
Robert Israel, Table of n, a(n) for n = 2..10000
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
KEYWORD
nonn,base
AUTHOR
Robert Israel, Jan 05 2025
STATUS
approved
