Skip to content

Commit ba8cf8c

Browse files
Clarify wording on co-prime factors in raindrops
1 parent 2e983e2 commit ba8cf8c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • exercises/practice/raindrops/.approaches/modulus

exercises/practice/raindrops/.approaches/modulus/content.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class RaindropConverter {
2323
```
2424

2525
We can generalize raindrops to any factors if they are [co-prime][co-prime].
26-
In raindrops the factors 3, 5 and 7 are co-prime (sets of prime numbers are all co-prime) and so we can use [Euler's totient function][euler-totient] to calculate `n¹² mod 105` to give us unique values for the various sounds.
26+
In raindrops, the factors 3, 5 and 7 are co-prime (all sets of prime numbers are co-prime), so we can use [Euler's totient function][euler-totient] to calculate `n¹² mod 105`, giving us unique values for the various sounds.
2727
The math behind how we find the right exponent and modulus is explained in an article on the related problem of [Fizz-Buzz][fizz-buzz].
2828

2929
[co-prime]: https://en.wikipedia.org/wiki/Coprime_integers

0 commit comments

Comments
 (0)