Created
October 23, 2022 01:47
-
-
Save vhxs/04db3e691407f0f9df0d55b7415bf588 to your computer and use it in GitHub Desktop.
testing ceiling inequality
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The following inequality doesn't hold for all x, y \in \mathbb{R}. Does it hold for x, y \in mathbb{N}? | |
# Here's a bruteforce test for 1 <= x, y <= 1000 | |
import math | |
for x in range(1, 1000): | |
for y in range(1, 1000): | |
assert y >= math.ceil(x / math.ceil(x / y)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Evidence that this inequality fails in general over the reals: