OFFSET
2,1
EXAMPLE
13 = 1101 in base 2, 231 in base 3, 31 in base 4, 23 in base 5, 21 in base 6 but 16 in base 7, so 13 ends in an odd digit from bases 2 to 6.
MAPLE
a:= proc(n) option remember; local k; for k by 2 from `if`(n=2, 3,
a(n-1)) while ormap(b-> irem(k, b)::even, [$2..n]) do od; k
end:
seq(a(n), n=2..52); # Alois P. Heinz, Jul 30 2023
MATHEMATICA
a[n_] := Module[{k = 3}, While[!AllTrue[Range[2, n], OddQ[Mod[k, #]] &], k += 2]; k]; Array[a, 45, 2] (* Amiram Eldar, Jul 30 2023 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Jonathan Ayres (jonathan.ayres(AT)btinternet.com), Oct 23 2001
EXTENSIONS
Data corrected by Sean A. Irvine, Jul 30 2023
STATUS
approved