Question

In: Computer Science

Show that any number that ends in 9 if squared ends at 1.

Show that any number that ends in 9 if squared ends at 1.

Solutions

Expert Solution

The numbers ending in 9 are of the form 10x + 9, where x is any integer.

Now on squaring,

(10x + 9)2 = 100x2 + 180x + 81

Let us divide the expression into 3 parts, first one is 100x2 , second one is 180x and the third one is 81.

The first one definitely ends with 0 because any number multiplied by 10 or its multiple has zeros at the end.

So the first and second terms ends with 0.

As we are concerned only about the the last digit, we dont bother about the remaining digits except the last digit on adding 81 to the other terms. 81 ends with 1.So the result ends with 1.

Therefore any number ending with 9, has its square ending in 1.

Example:

Let us consider the value of x as 1. The number will be 10 + 9 = 19.

(10 + 9)2 = 100 + 180 + 81 = 361.

19 ends with 9 and it's square 361 ends in 1.

Please appreciate the solution if you find it helpful. If you have any doubts in the solution, feel free to ask me in the comment section.


Related Solutions

Show that for any square-free integer n > 1, √ n is an irrational number
Show that for any square-free integer n > 1, √ n is an irrational number
1. Use cardinality to show that between any two rational numbers there is an irrational number....
1. Use cardinality to show that between any two rational numbers there is an irrational number. Hint: Given rational numbers a < b, first show that [a,b] is uncountable. Now use a proof by contradiction. 2. Let X be any set. Show that X and P(X) do not have the same cardinality. Here P(X) denote the power set of X. Hint: Use a proof by contradiction. If a bijection:X→P(X)exists, use it to construct a set Y ∈P(X) for which Y...
3. Use oil-tempered 0.060” diameter wire to make a spring with squared and closed ends, a...
3. Use oil-tempered 0.060” diameter wire to make a spring with squared and closed ends, a spring index of 4, and solid length of 1.25”. Use a load factor of safety of 1.05 and make the free length 1.75 inches. e) What is the force to close to solid, Fs? f) What is the critical frequency? g) What is the factor of safety, solid, ns?
1.) is there a difference between "2-way Chi-squared" and just "Chi-squared" or are they the same?...
1.) is there a difference between "2-way Chi-squared" and just "Chi-squared" or are they the same? 2.) How do you find the measurement?
1. a. Show that for any y ∈ Rn, show that yyT is positive semidefinite. b....
1. a. Show that for any y ∈ Rn, show that yyT is positive semidefinite. b. Let X be a random vector in Rn with covariance matrix Σ = E[(X − E[X])(X − E[X])T]. Show that Σ is positive semidefinite. 2. Let X and Y be real independent random variables with PDFs given by f and g, respectively. Let h be the PDF of the random variable Z = X + Y . a. Derive a general expression for h...
Use cardinality to show that between any two rational numbers there is an irrational number. Hint:...
Use cardinality to show that between any two rational numbers there is an irrational number. Hint: Given rational numbers a < b, first show that [a, b] is uncountable. Now use a proof by contradiction
23. Show that for any numbern, n andn+1 are coprime. 28. Show that if (a,b)=1 and...
23. Show that for any numbern, n andn+1 are coprime. 28. Show that if (a,b)=1 and c divides a, then (c,b)=1.
9. The process of DNA replication creates a particular problem for replicating the ends of linear...
9. The process of DNA replication creates a particular problem for replicating the ends of linear chromosomes. a) Describe why the DNA replication machinery has difficulty replicating DNA ends. b) Telomerase has been identified as an enzyme that can reverse the outcome of end replication. Describe the near-universal mammalian chromosome telomere sequence and how telomerase solves the problem of end replication.
9. Generate a random number between 1 and 8, which is the computer’s number. Ask the...
9. Generate a random number between 1 and 8, which is the computer’s number. Ask the user to guess a number between 1 and 8. Write a sentinel-controlled loop to continue to executed until the user’s guess matches the computer’s number. If the user's guess matches the random number, print a message in green on the SenseHat congratulating the user and then break out of the loop. Otherwise, print a message in red on the SenseHat to ask the user...
using any form of induction, that a binary string begins and ends with the same character...
using any form of induction, that a binary string begins and ends with the same character iff contains an even number of occurences of substrings from (01,10).
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT