Number Tricks Calculator
Check Armstrong numbers and practise multiplication, squares ending in 5 and percentages.
Check the active fields. Armstrong needs a nonnegative integer; the square shortcut needs an integer ending in 5.
Armstrong: at most 100 digits. Other modes accept up to 100 digits and exponents from −100 to 100, using a decimal dot or comma. Arithmetic is exact within these input limits.
How the shortcuts work
An Armstrong number equals the sum of its digits, each raised to the number of digits.
N = Σ dᵢᵏ; k = 1, 2, …; 153 = 1³+5³+3³.
11a = 10a+a; 5a = (a/2)×10; (10k+5)² = 100k(k+1)+25; a²−b² = (a+b)(a−b); pN/100 = Np/100.
Frequently asked questions
What is an Armstrong number?
An Armstrong number equals the sum of its digits, each raised to the number of digits.
Why does the square-ending-in-5 shortcut work?
(10k+5)² = 100k²+100k+25 = 100k(k+1)+25. 25² = 100×2×3+25 = 625.
Why can percentages be swapped?
p% × N = pN/100 = Np/100 = N% × p.
How we verified this calculator
The calculator is checked against 6 reference cases computed independently of its code. Last passed: .
| # | Inputs | Expected result |
|---|---|---|
| 1 |
Mode = Percentage shortcut
Number = 8
Second number = 50
|
Result: 4
|
| 2 |
Mode = Percentage shortcut
Number = 12.5
Second number = 80
|
Result: 10
|
| 3 |
Mode = Multiply by 11
Number = 4527
Second number = 49797
|
Result: 49797
|
| 4 |
Mode = Multiply by 11
Number = -0.37
Second number = -4.07
|
Result: -4.07
|
| 5 |
Mode = Multiply by 5
Number = 4682
Second number = 23410
|
Result: 23410
|
| 6 |
Mode = Multiply by 5
Number = 0.3
Second number = 1.5
|
Result: 1.5
|