|
|
A342831
|
|
a(n) is the smallest positive integer k such that the n-dimensional cube [0,k]^n contains at least as many internal lattice points as external lattice points.
|
|
1
|
|
|
3, 6, 9, 12, 15, 18, 21, 24, 26, 29, 32, 35, 38, 41, 44, 47, 50, 52, 55, 58, 61, 64, 67, 70, 73, 76, 78, 81, 84, 87, 90, 93, 96, 99, 101, 104, 107, 110, 113, 116, 119, 122, 125, 127, 130, 133, 136, 139, 142, 145, 148, 151, 153, 156, 159, 162, 165, 168, 171, 174, 177, 179, 182
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
a(1) = 3 and a(n) = floor(2^(1/n+1)/(2^(1/n)-1)) for n > 1.
|
|
EXAMPLE
|
a(2) > 5 because the number of internal lattice points = 4^2 = 16 < 20 = 6^2 - 16 = the number of external lattice points, therefore a(2)=6 because the number of internal lattice points = 5^2 = 25 > 24 = 7^2 - 25 = number of external lattice points.
|
|
MAPLE
|
a:= n-> ceil(1+2/(2^(1/n)-1)):
|
|
MATHEMATICA
|
a[1] = 3; a[n_] := Floor[2^(1/n + 1)/(2^(1/n) - 1)]; Array[a, 100] (* Amiram Eldar, Mar 31 2021 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|