General Divisibility

Problem 4.1 • Check independence of "Divisible by a" and "Divisible by b" in range [1, N]

🔢 Number Grid (1 to N)

Blue dot: Divisible by 2. Pink dot: Divisible by 3.

⚙️ Parameters

Range Size (N) 30
Divisor a (Event A) 2
Divisor b (Event B) 3

Checking...

...

📊 Probabilities

P(A) 0.00
P(B) 0.00
P(A ∩ B) 0.00
P(A) × P(B) 0.00

💡 Insight

Usually independent if N is a multiple of LCM(a, b), but can vary for arbitrary N due to "edge effects" (incomplete cycles of divisibility).