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?
Q4 (a):  A helical compression spring made of music wire (ends are squared and ground) has mean...
Q4 (a):  A helical compression spring made of music wire (ends are squared and ground) has mean coil diameter 33.77 , wire diameter 5 , and the number of active coils 22. Assume no set removal. a) Calculate the torsional yield strength,  of the spring wire (in  units). Enter only numeric value upto four places of decimal without units. (b):  A helical compression spring made of music wire (ends are squared and ground) has mean coil diameter 34.93 , wire diameter 5.87 , and...
Use Strong induction to show that any counting number can be written as the sum of...
Use Strong induction to show that any counting number can be written as the sum of distinct powers of 2.
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...
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.
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
Let G be any context-free grammar. Show that the number of strings that have a derivation...
Let G be any context-free grammar. Show that the number of strings that have a derivation in G of length n or less, for any n > 0, is finite. Could you please answer with clear explanation. The question is from Elaine Rich's Automata, Computability and Complexity Chapter 11 Exercise 14.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT