| Mathbox for Steven Nguyen |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > Mathboxes > sqn5i | Structured version Visualization version GIF version | ||
| Description: The square of a number ending in 5. This shortcut only works because 5 is half of 10. (Contributed by Steven Nguyen, 16-Sep-2022.) |
| Ref | Expression |
|---|---|
| sqn5i.1 | ⊢ 𝐴 ∈ ℕ0 |
| Ref | Expression |
|---|---|
| sqn5i | ⊢ (;𝐴5 · ;𝐴5) = ;;(𝐴 · (𝐴 + 1))25 |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | sqn5i.1 | . . . . 5 ⊢ 𝐴 ∈ ℕ0 | |
| 2 | 0nn0 12496 | . . . . 5 ⊢ 0 ∈ ℕ0 | |
| 3 | 1, 2 | deccl 12703 | . . . 4 ⊢ ;𝐴0 ∈ ℕ0 |
| 4 | 3 | nn0cni 12493 | . . 3 ⊢ ;𝐴0 ∈ ℂ |
| 5 | 5cn 12306 | . . 3 ⊢ 5 ∈ ℂ | |
| 6 | 5nn0 12501 | . . . 4 ⊢ 5 ∈ ℕ0 | |
| 7 | eqid 2762 | . . . 4 ⊢ ;𝐴0 = ;𝐴0 | |
| 8 | 5 | addlidi 11371 | . . . 4 ⊢ (0 + 5) = 5 |
| 9 | 1, 2, 6, 7, 8 | decaddi 12753 | . . 3 ⊢ (;𝐴0 + 5) = ;𝐴5 |
| 10 | eqid 2762 | . . . 4 ⊢ ;𝐴5 = ;𝐴5 | |
| 11 | eqid 2762 | . . . 4 ⊢ (𝐴 + 1) = (𝐴 + 1) | |
| 12 | 5p5e10 12764 | . . . 4 ⊢ (5 + 5) = ;10 | |
| 13 | 1, 6, 6, 10, 11, 12 | decaddci2 12755 | . . 3 ⊢ (;𝐴5 + 5) = ;(𝐴 + 1)0 |
| 14 | 4, 5, 9, 13 | sqmid3api 42892 | . 2 ⊢ (;𝐴5 · ;𝐴5) = ((;𝐴0 · ;(𝐴 + 1)0) + (5 · 5)) |
| 15 | 2nn0 12498 | . . 3 ⊢ 2 ∈ ℕ0 | |
| 16 | 5t5e25 12796 | . . 3 ⊢ (5 · 5) = ;25 | |
| 17 | peano2nn0 12521 | . . . . 5 ⊢ (𝐴 ∈ ℕ0 → (𝐴 + 1) ∈ ℕ0) | |
| 18 | 1, 17 | ax-mp 5 | . . . 4 ⊢ (𝐴 + 1) ∈ ℕ0 |
| 19 | 18, 2 | deccl 12703 | . . 3 ⊢ ;(𝐴 + 1)0 ∈ ℕ0 |
| 20 | 1, 18 | nn0mulcli 12519 | . . . 4 ⊢ (𝐴 · (𝐴 + 1)) ∈ ℕ0 |
| 21 | 1, 18, 2 | decmulnc 12760 | . . . . 5 ⊢ (𝐴 · ;(𝐴 + 1)0) = ;(𝐴 · (𝐴 + 1))(𝐴 · 0) |
| 22 | 1 | nn0cni 12493 | . . . . . . 7 ⊢ 𝐴 ∈ ℂ |
| 23 | 22 | mul01i 11373 | . . . . . 6 ⊢ (𝐴 · 0) = 0 |
| 24 | 23 | deceq2i 12696 | . . . . 5 ⊢ ;(𝐴 · (𝐴 + 1))(𝐴 · 0) = ;(𝐴 · (𝐴 + 1))0 |
| 25 | 21, 24 | eqtri 2785 | . . . 4 ⊢ (𝐴 · ;(𝐴 + 1)0) = ;(𝐴 · (𝐴 + 1))0 |
| 26 | 2cn 12293 | . . . . 5 ⊢ 2 ∈ ℂ | |
| 27 | 26 | addlidi 11371 | . . . 4 ⊢ (0 + 2) = 2 |
| 28 | 20, 2, 15, 25, 27 | decaddi 12753 | . . 3 ⊢ ((𝐴 · ;(𝐴 + 1)0) + 2) = ;(𝐴 · (𝐴 + 1))2 |
| 29 | 19 | nn0cni 12493 | . . . . . 6 ⊢ ;(𝐴 + 1)0 ∈ ℂ |
| 30 | 29 | mul02i 11372 | . . . . 5 ⊢ (0 · ;(𝐴 + 1)0) = 0 |
| 31 | 30 | oveq1i 7406 | . . . 4 ⊢ ((0 · ;(𝐴 + 1)0) + 5) = (0 + 5) |
| 32 | 31, 8 | eqtri 2785 | . . 3 ⊢ ((0 · ;(𝐴 + 1)0) + 5) = 5 |
| 33 | 1, 2, 15, 6, 7, 16, 19, 28, 32 | decma 12744 | . 2 ⊢ ((;𝐴0 · ;(𝐴 + 1)0) + (5 · 5)) = ;;(𝐴 · (𝐴 + 1))25 |
| 34 | 14, 33 | eqtri 2785 | 1 ⊢ (;𝐴5 · ;𝐴5) = ;;(𝐴 · (𝐴 + 1))25 |
| Colors of variables: wff setvar class |
| Syntax hints: = wceq 1560 ∈ wcel 2142 (class class class)co 7396 0cc0 11073 1c1 11074 + caddc 11076 · cmul 11078 2c2 12272 5c5 12275 ℕ0cn0 12481 ;cdc 12688 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1815 ax-4 1829 ax-5 1930 ax-6 1987 ax-7 2028 ax-8 2144 ax-9 2152 ax-10 2175 ax-11 2191 ax-12 2212 ax-ext 2734 ax-sep 5246 ax-nul 5256 ax-pow 5322 ax-pr 5390 ax-un 7718 ax-resscn 11130 ax-1cn 11131 ax-icn 11132 ax-addcl 11133 ax-addrcl 11134 ax-mulcl 11135 ax-mulrcl 11136 ax-mulcom 11137 ax-addass 11138 ax-mulass 11139 ax-distr 11140 ax-i2m1 11141 ax-1ne0 11142 ax-1rid 11143 ax-rnegex 11144 ax-rrecex 11145 ax-cnre 11146 ax-pre-lttri 11147 ax-pre-lttrn 11148 ax-pre-ltadd 11149 |
| This theorem depends on definitions: df-bi 209 df-an 400 df-or 859 df-3or 1099 df-3an 1100 df-tru 1563 df-fal 1573 df-ex 1800 df-nf 1804 df-sb 2091 df-mo 2566 df-eu 2596 df-clab 2741 df-cleq 2754 df-clel 2837 df-nfc 2911 df-ne 2958 df-nel 3062 df-ral 3077 df-rex 3087 df-reu 3368 df-rab 3415 df-v 3456 df-sbc 3745 df-csb 3853 df-dif 3907 df-un 3909 df-in 3911 df-ss 3921 df-pss 3924 df-nul 4286 df-if 4481 df-pw 4557 df-sn 4583 df-pr 4585 df-op 4589 df-uni 4866 df-iun 4951 df-br 5101 df-opab 5163 df-mpt 5182 df-tr 5208 df-id 5542 df-eprel 5547 df-po 5555 df-so 5556 df-fr 5600 df-we 5602 df-xp 5653 df-rel 5654 df-cnv 5655 df-co 5656 df-dm 5657 df-rn 5658 df-res 5659 df-ima 5660 df-pred 6288 df-ord 6349 df-on 6350 df-lim 6351 df-suc 6352 df-iota 6477 df-fun 6523 df-fn 6524 df-f 6525 df-f1 6526 df-fo 6527 df-f1o 6528 df-fv 6529 df-riota 7353 df-ov 7399 df-oprab 7400 df-mpo 7401 df-om 7847 df-2nd 7971 df-frecs 8262 df-wrecs 8293 df-recs 8342 df-rdg 8381 df-er 8678 df-en 8928 df-dom 8929 df-sdom 8930 df-pnf 11218 df-mnf 11219 df-ltxr 11221 df-sub 11416 df-nn 12211 df-2 12280 df-3 12281 df-4 12282 df-5 12283 df-6 12284 df-7 12285 df-8 12286 df-9 12287 df-n0 12482 df-dec 12689 |
| This theorem is referenced by: sqn5ii 42895 |
| Copyright terms: Public domain | W3C validator |