🔐 The Job

Opening brief — read aloud

"You've been hired as a security consultant. The vault's owner wants to know exactly how many codes their system allows — get the count wrong, and you'll either miss a real vulnerability or waste money fixing one that isn't there."

1
Phase 1
Setting the Baseline
Task 1a

4-character code, digits 0–9, repeats allowed. How many codes?

Task 1b

Now try 6 characters. Can you write a general rule for length \(n\)?

2
Phase 2
No Repeats Allowed
Task 2a

Same code, but no digit may repeat. How many now?

Task 2b

Why isn't this just "a bit less than before"?

Task 2c

Add: the code can't start with 0. Does the answer change?

3
Phase 3
The Letter Requirement
Task 3a

36-character alphabet (digits + letters), repeats allowed, must contain at least one letter. How many codes?

Task 3b

If that got messy, is there a completely different approach?

4
Phase 4
Cracking the Vault
Task 4a & 4b

Combine every rule: 36 characters, no repeats, at least one letter. Explain how you used ideas from both Phase 2 and Phase 3.

🚀 Challenge

Add: the first character must specifically be a letter. Does the "at least one letter" rule still need separate handling?