A330435 a(n) is the least k >= n that written in base n and then interpreted in base n+1 is a multiple of k.
5, 53, 1060, 697, 14027, 7830448093388, 278269, 7794416, 1784625167675, 217659538, 7299226328, 58429863516468189, 2265720635440119410, 11301046374119, 5483279396166772909558757483, 9796440127236265192879361141313874782657110677228434, 24212615127434834, 1506888944866952574
Offset: 2
Examples
a(5) = 697 = (10242)_5 and (10242)_6 = 1394 = 2 * 697. a(7) = 7830448093388 = (1435505542406624)_7, which when interpreted in base 8 is equal to 7 * 7830448093388.
Programs
-
Mathematica
a[n_] := Block[{k = n}, While[ Mod[ FromDigits[ IntegerDigits[k, n], n + 1], k] > 0, k++]; k]; a /@ Range[2, 6]
-
Python
def BaseUp(n,b): up, b1 = 0, 1 while n > 0: up, b1, n = up+(n%b)*b1, b1*(b+1), n//b return up n = 2 while n < 20: k = n while BaseUp(k,n)%k != 0: k = k+1 print(n,k) n = n+1 # A.H.M. Smeets, Mar 31 2020
Comments