Devise an algorithm to find all possible values of a positive integer N ≤ 20220 that simultaneously satisfies the following conditions:
- N is divisible by 17
- The sum of digits of N is divisible by 17.
(In reply to
Two algorithms by Brian Smith)
That second algorithm is very clever, Brian.
|
Posted by Larry
on 2023-03-04 10:36:49 |