Greg Egan on Nostr: Pick two points uniformly at random inside a regular n-gon. For even n≥4, the ...
Pick two points uniformly at random inside a regular n-gon.
For even n≥4, the probability that the line containing them will pass through two opposite sides of the n-gon is:
8/(3n)
For odd or even n≥3, the probability that the line will pass through two adjacent sides is:
16 sin(π/n)^4 /(3n)
Published at
2025-08-24 12:30:06 UTCEvent JSON
{
"id": "f72b8c44cef5d8f60ad7e0a02c665893cbbc98621a598bcb351da300db6315b4",
"pubkey": "0037e9f1404aa866c76ed1358206ac5387eb2d3589361a3802af0f260bda26d7",
"created_at": 1756038606,
"kind": 1,
"tags": [
[
"proxy",
"https://mathstodon.xyz/users/gregeganSF/statuses/115083746141763478",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.mostr.pub"
]
],
"content": "Pick two points uniformly at random inside a regular n-gon.\n\nFor even n≥4, the probability that the line containing them will pass through two opposite sides of the n-gon is:\n\n8/(3n)\n\nFor odd or even n≥3, the probability that the line will pass through two adjacent sides is:\n\n16 sin(π/n)^4 /(3n)",
"sig": "38948613f5991df75b8a15e346609388aa8ad670658b698b501cb01ea7ea3e8218dbf4e6a3b13c2e5413b7e05012aef3addf4327e82015307ddea2d8ff01e114"
}