Counting problem social security numbers

Click For Summary
SUMMARY

The discussion focuses on calculating various properties of 9-digit social security numbers (SSNs). The total number of SSNs is determined to be 109. The number of even SSNs is calculated as 5 * 108, while the count of SSNs with all even digits is 59. For palindromic SSNs, the total is 105. The calculations for SSNs without the digit '8' yield 99, and those with at least one '8' are derived from the total SSNs minus those without '8', resulting in 109 - 99. Finally, the count of SSNs with exactly one '8' is confirmed to be 9 * 98.

PREREQUISITES
  • Understanding of combinatorial mathematics
  • Familiarity with the concept of palindromes
  • Basic knowledge of number theory
  • Ability to perform exponential calculations
NEXT STEPS
  • Explore combinatorial counting techniques in depth
  • Study properties of palindromic numbers
  • Learn about generating functions for counting problems
  • Investigate the implications of digit restrictions in number theory
USEFUL FOR

Mathematicians, computer scientists, students studying combinatorics, and anyone interested in number theory and its applications in real-world scenarios.

cragar
Messages
2,546
Reaction score
3

Homework Statement


social security number is a 9 digit number.
the first digit may be 0
a. How many numbers are available
b. How many are even
c. How many have all of their digits even
d. How many read the same forward and backward
e. How many have none of their digits equal to 8
f. How many have at least one digit equal to 8
g. How many have exactly one 8.

The Attempt at a Solution


a. assuming we can have a number with all zero's i would say
10^9 because we have 10 possible choices for each of the 9 slots
b. I would assume half of part a
c. I would assume half unless there is some kind of fence post error.
d. I think it is 10*10*10*10*10*1*1*1*1
The middle number can be what-ever since its in the middle
so i have 10 choices for that. And the four numbers to the left of the middle can be anything so i have 10 choices for those but this restricts the numbers on the right so I have only 1 choice or those.
e. Since i have removed a possible choice I only have 9 choice for my 9 slots so it should be 9^9
f. this should be 10^8 because on one of them I only have one choice but the rest I have 10 choices.
g. On one of the slots I have one choice because it hast to be an 8 , but the rest can't have an 8 in them therefore I have 9 choices on the remaining 8 digits so the answer should be 9^8
 
Physics news on Phys.org
cragar said:

Homework Statement


social security number is a 9 digit number.
the first digit may be 0
a. How many numbers are available
b. How many are even
c. How many have all of their digits even
d. How many read the same forward and backward
e. How many have none of their digits equal to 8
f. How many have at least one digit equal to 8
g. How many have exactly one 8.

The Attempt at a Solution


a. assuming we can have a number with all zero's i would say
10^9 because we have 10 possible choices for each of the 9 slots
Right.
cragar said:
b. I would assume half of part a
You should write this as a number.
cragar said:
c. I would assume half unless there is some kind of fence post error.
I don't think so. How many choices are there for each of the slots? Is this number half of 109?
cragar said:
d. I think it is 10*10*10*10*10*1*1*1*1
The middle number can be what-ever since its in the middle
so i have 10 choices for that. And the four numbers to the left of the middle can be anything so i have 10 choices for those but this restricts the numbers on the right so I have only 1 choice or those.
Looks good, but you should simplify this number.
cragar said:
e. Since i have removed a possible choice I only have 9 choice for my 9 slots so it should be 9^9
OK
cragar said:
f. this should be 10^8 because on one of them I only have one choice but the rest I have 10 choices.
This one bothered me a little, but I think you're right.
cragar said:
g. On one of the slots I have one choice because it hast to be an 8 , but the rest can't have an 8 in them therefore I have 9 choices on the remaining 8 digits so the answer should be 9^8
OK
 
thanks for your response.
and on part c. it should be 5^9 because I have 5 even numbers to choose from on each slot.
and why does part f bother you.
 
cragar said:
thanks for your response.
and on part c. it should be 5^9 because I have 5 even numbers to choose from on each slot.
Which is quite a bit different from your first answer of .5 * 10^9
cragar said:
and why does part f bother you.
I was concerned that you were counting too many numbers.
 
ya i think i read part c to quickly . thanks for you help .
 
Now I think part f is wrong. Because all the ones that have at least one 8 should be the total numbers of possible social security numbers minus the ones that don't have any 8's
so i think the answer to f should be 10^9-9^9
And now I am not so sure about g . Because if I had an 8 in the first slot I would have one choice then 9 choices for the following, Then I would have to do another chart with an 8 in the second slot and then keep going down the line.
 
cragar said:
Now I think part f is wrong. Because all the ones that have at least one 8 should be the total numbers of possible social security numbers minus the ones that don't have any 8's
so i think the answer to f should be 10^9-9^9
And now I am not so sure about g . Because if I had an 8 in the first slot I would have one choice then 9 choices for the following, Then I would have to do another chart with an 8 in the second slot and then keep going down the line.

That's what I got for part f (612579511). For g I got the same thing as e (99). At first this seemed wrong but I think it is right. As you said, 98 is how many possibilities will have an 8 in (only) the first slot. All you have to do is recognize that any of the slots could be the one with the 8 and thus multiple that by the number of slots, so 98 * 9 = 99
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 5 ·
Replies
5
Views
7K
Replies
32
Views
3K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
846
  • · Replies 5 ·
Replies
5
Views
13K
  • · Replies 10 ·
Replies
10
Views
2K