"Some multiples of 11 have an even digit sum. For example, 7*11 = 77 and 7+7 = 14, which is even; 11*11 = 121 and 1+2+1 = 4, which is even. Do all multiples of 11 have an even digit sum? (Prove that they do or find the smallest that does not.)"(Source)

To practice my Java programming skills (I've began learning Java about a month ago) I wrote a small program that finds all the numbers for which the statement does not hold.

The output looks like this:

So, the statement is not true for all multiples of 11. It is only true for multiples of 11 smaller than 209.

And finally the java files, so you can test if for yourself:

Multiple11.java

BranjePodatkov.java

To practice my Java programming skills (I've began learning Java about a month ago) I wrote a small program that finds all the numbers for which the statement does not hold.

The output looks like this:

> run Multilpe11 Some multiples of 11 have an even digit sum. For example, 7*11 = 77 and 7+7 = 14, which is even; 11*11 = 121 and 1+2+1 = 4, which is even. Do all multiples of 11 have an even digit sum? (Prove that they do or find the smallest that does not.) For how many consecutive multiples of 11 would you like to check if the statement is correct: 1000 These are 36 numbers smaller than 1000, that are multiples of 11, but whose digit sum is not even. These numbers are: 209 308 319 407 418 429 506 517 528 539 605 616 627 638 649 704 715 726 737 748 759 803 814 825 836 847 858 869 902 913 924 935 946 957 968 979

And finally the java files, so you can test if for yourself:

Multiple11.java

BranjePodatkov.java

## Comments

## Post a Comment