Count the arrangements meeting a condition by subtracting the forbidden ones from the total
Grade 8 · Discrete math
A printable worksheet with 12 problems and an answer key. Change the number of problems, mix in a related skill, or press “New set” for different numbers. Nothing to sign up for.
The link in your address bar makes this exact sheet again. Share it and everyone prints the same problems.
Make it about what your kid loves
An AI model can rewrite the 12 word problems on this sheet around a topic. The numbers, units and answers stay exactly the same, and we check every one before showing it. It runs on your own AI account, and a sheet costs about a cent.
A topic only, please, with no names. For grown-ups: we never ask anything about your child and store nothing. The topic and this sheet’s word problems go from this tab to the AI service you choose, and nowhere else.
OpenRouter is a service that sells AI model use. You sign in there, add a few dollars of credit if you have none, and approve a key with a $2 spending limit (you can change it). OpenRouter sends the bill to you. The key stays in this tab and is forgotten when you close or reload it.
Count the arrangements meeting a condition by subtracting the forbidden ones from the total
Grade 8 · Discrete math
Name ____________________ Date ______________
1.
How many 4-digit codes (digits 0-9, repeats allowed) have at least one digit that is not 5? (Total is 10000.)
2.
How many 3-digit codes (digits 0-9, repeats allowed) have at least one digit that is not 0? (Total is 1000.)
3.
How many 2-digit codes (digits 0-9, repeats allowed) have at least one digit that is not 5? (Total is 100.)
4.
How many 2-digit codes (digits 0-9, repeats allowed) have at least one digit that is not 1? (Total is 100.)
5.
How many 4-digit codes (digits 0-9, repeats allowed) have at least one digit that is not 2? (Total is 10000.)
6.
How many 2-digit codes (digits 0-9, repeats allowed) have at least one digit that is not 2? (Total is 100.)
7.
How many 4-digit codes (digits 0-9, repeats allowed) have at least one digit that is not 3? (Total is 10000.)
8.
How many 2-digit codes (digits 0-9, repeats allowed) have at least one digit that is not 8? (Total is 100.)
9.
How many 4-digit codes (digits 0-9, repeats allowed) have at least one digit that is not 9? (Total is 10000.)
10.
How many 4-digit codes (digits 0-9, repeats allowed) have at least one digit that is not 7? (Total is 10000.)
11.
How many 3-digit codes (digits 0-9, repeats allowed) have at least one digit that is not 2? (Total is 1000.)
12.
How many 3-digit codes (digits 0-9, repeats allowed) have at least one digit that is not 9? (Total is 1000.)
Answer key
Count the arrangements meeting a condition by subtracting the forbidden ones from the total · set 1
1.9999
2.999
3.99
4.99
5.9999
6.99
7.9999
8.99
9.9999
10.9999
11.999
12.999
About this skill
How many 3-digit codes, repeats allowed, have at least one digit that is not 0? Counting those directly is tangled. The total is 1000 and only 000 fails, so the answer is 1000 − 1 = 999. Each problem uses codes of 2, 3 or 4 digits, gives the total, and asks the same question about a named digit. It builds on counting restricted arrangements and unordered selections.
If this sheet is too hard, try one of the skills it builds on. If it’s easy, try what comes next.