\(求所有实数\ α\ 满足:\ 对任意正整数\ n,\ 整数\ \lfloorα\rfloor+\lfloor2α\rfloor+…+\lfloor nα\rfloor\ 均为\ n\ 的倍数。\lfloor A\rfloor\ 表示不超过\ A\ 的最大整数。\)
\(1,\ 答案。\ α=\{...-8,-6,-4,-2,0,2,4,6,8,...\}。\ α\ 不能是奇数。\ α\ 不能是小数。\)
- Table[Mod[Sum[2a k, {k, n}], n], {a, -4, 4}, {n, 1, 9}]
复制代码
{{0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}}
- Table[Mod[a n (n + 1), n], {a, -4, 4}, {n, 1, 9}]
复制代码
{{0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}}
\(2,\ 假设\ α = \ 整数部分 + β(小数部分),\ 其中\ 0< β<1。\ 记\ S(β,n)=\lfloorβ\rfloor+\lfloor2β\rfloor+…+\lfloor nβ\rfloor。则\)
\(S(β,1)\ 肯定是\ 1\ 的倍数。S(β,2)\ 肯定是\ 2\ 的倍数。S(β,3)\ 肯定是\ 3\ 的倍数。S(β,4)\ 肯定是\ 4\ 的倍数。...\)
\(S(β,1):没问题。S(β,2):β<1/2\ 是不行的。S(β,3):β<2/3\ 是不行的。S(β,4):β<3/4\ 是不行的。S(β,5):β<4/5\ 是不行的。...\)
\(3,\ 对模\ n\ 来说,\ 2 p + β ≡ \ 2 p - β ≡ β,\ \ 这里取β = a/b,\ b≥2, \ 1≤a≤b-1,\ \ 当然, \ \ β\ 可以取无理数。\)
- Table[Mod[Sum[Floor[k (a/b)], {k, n}], n], {b, 2, 19}, {a, b - 1}, {n, b}]
复制代码
b=2,{{0, 1}},
b=3,{{0, 0, 1}, {0, 1, 0}},
b=4,{{0, 0, 0, 1}, {0, 1, 2, 0}, {0, 1, 0, 2}},
b=5,{{0, 0, 0, 0, 1}, {0, 0, 1, 2, 4}, {0, 1, 2, 0, 2}, {0, 1,0, 2, 0}},
b=6,{{0, 0, 0, 0, 0, 1}, {0, 0, 1, 2, 3, 5}, {0, 1, 2, 0, 1, 3}, {0, 1, 0, 1, 3, 0}, {0, 1, 0, 2, 0, 3}},
b=7,{{0, 0, 0, 0, 0, 0, 1}, {0, 0, 0, 1, 2, 3, 5}, {0, 0, 1, 2, 4, 0, 2}, {0, 1, 2, 0, 1, 3, 6}, {0, 1, 0, 1, 3, 0, 3}, {0, 1, 0, 2, 0, 3, 0}},
b=8,{{0, 0, 0, 0, 0, 0, 0, 1}, {0, 0, 0, 1, 2, 3, 4, 6}, {0, 0, 1, 2, 3, 5, 0, 2}, {0, 1, 2, 0, 1, 3, 5, 0}, {0, 1, 2, 0, 2, 4, 0, 3}, {0, 1, 0, 2, 4, 1, 4, 0}, {0, 1, 0, 2, 0, 3, 0, 4}},
b=9,{{0, 0, 0, 0, 0, 0, 0, 0, 1}, {0, 0, 0, 0, 1, 2, 3, 4, 6}, {0, 0, 1, 2, 3, 5, 0, 1, 3}, {0, 0, 1, 2, 4, 0, 2, 4, 7}, {0, 1, 2, 0, 1, 3, 5, 0, 3}, {0, 1, 0, 1, 3, 0, 2, 5, 0}, {0, 1, 0, 2, 4, 1, 4, 0, 4}, {0, 1, 0, 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 3, 10, 0, 8}, {0, 1, 0, 2, 0, 3, 6, 2, 6, 1, 6, 0, 5, 11, 3, 10, 1, 9, 18},
{0, 1, 0, 2, 0, 3, 0, 4, 0, 4, 9, 3, 9, 2, 9, 1, 9, 0, 9}, {0, 1, 0, 2, 0, 3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 8, 0, 9, 0}},
- Table[Mod[Sum[Floor[k (a/b + 2 p)], {k, n}], n], {b, 2, 19}, {a, b - 1}, {n, b}]
复制代码
同上。
- Table[Mod[Sum[Floor[k (a/b - 2 p)], {k, n}], n], {b, 2, 19}, {a, b - 1}, {n, b}]
复制代码
同上。 |