Skip to main content

Digit sums of multiples of 11

"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:
> 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
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

Comments

  1. The King Casino | Ventureberg
    Discover the novcasino rise and fall of ventureberg.com/ the king casino, one of the world's casino-roll.com largest The Casino is หาเงินออนไลน์ operated 바카라 사이트 by the King Casino Group. You can

    ReplyDelete
  2. If you’d prefer to play all of the paylines, press the ‘Max Bet’ button. Enhance the expertise of your players by providing bet365 them with rich graphics and high-quality sound results. Taking benefit of the freebies since you are half in} anyway is one factor, whereas half in} since you're trying to earn more factors is another. Machines that pay more will always be the place the majority of of} customers can see others win, as that urges them to play as properly.

    ReplyDelete

Post a Comment

Popular posts from this blog

Basic cell counting and segmentation in Matlab

Counting cells manually is a tedious error prone process for humans. Given a large data set of microscopy images this task can be achieved much faster by means of basic computer vision techniques. In this tutorial we will segment cells from an image following a method similar to the one presented by Yongming Chen in 1999. The method uses basic morphological operations  and the watershed algorithm to segment the cells. Nowadays better methods for cell segmentation exist. This method was chosen for its simplicity and ease of implementation. We start with an image of cell-like structures by Anna-Katerina Hadjantonakis and Virginia E Papaioannou . A = imread('cells.jpg'); We convert the image to grayscale: I = rgb2gray(A); To be able to extract the dimmer cells, it is necessary to perform some local contrast adjustments I = adapthisteq(I); Objects on the borders can be caused by noise and other artifacts. We can eliminate objects on the borders...

The Increased Addictiveness of Today's Video Games

This is a guest post by Miles Walker, a freelance writer and blogger who usually  compares car insurance  deals over at CarinsuranceComparison.Org. His most recent review looked at the best  car insurance quotes . Video games have always held some addiction, but now more than ever that addiction is growing. People are spending more time than ever playing the games, and game designers are constantly finding new ways keep it that way. Their efforts have a been a complete success, and some games have true addicts, addicts who play 24 hours a week or more. Visual enhancements Video games have come a long way since a certain duo of Italian plumbers started showing up in people's houses in the late 1980s. By leaps and bounds, video game graphics have become alarmingly sophisticated. Each graphical improvement increased a game's possibilities and added more depth to video games. Designers began thriving on this depth, making games with more achievements, unlocks, lev...

A more confusing Internet with .brand TLDs

A few months ago, I wrote a post proposing to remove top level domains from the internet, as many people don't understand why we need TLDs. At the time I didn't know either. Removing TLDs would simplify browsing an possibly increase security by reducing phishing sites that make use of URL similarity to gain visits to potentially dangerous websites, or sites filled with ads. The ICANN, the body that manages Internet names, has for years been preparing something different but that produces a slightly similar effect than removing TLDs: allowing brands to register their own TLDs . The proposal may soon be approved has been approved . Brands would therefore be able to register their own TLDs. Google could register .google a potentially powerful TLD for their services, like Google Maps: maps.google instead of maps.google.com. Brand TLD don't improve short urls like google.com, but seem to be effective for use in subdomains. Registering a .<brand-name> TLD will cost...