Users' Mathboxes Mathbox for Steven Nguyen < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  sqn5i Structured version   Visualization version   GIF version

Theorem sqn5i 42762
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.)
Hypothesis
Ref Expression
sqn5i.1 𝐴 ∈ ℕ0
Assertion
Ref Expression
sqn5i (𝐴5 · 𝐴5) = (𝐴 · (𝐴 + 1))25

Proof of Theorem sqn5i
StepHypRef Expression
1 sqn5i.1 . . . . 5 𝐴 ∈ ℕ0
2 0nn0 12443 . . . . 5 0 ∈ ℕ0
31, 2deccl 12650 . . . 4 𝐴0 ∈ ℕ0
43nn0cni 12440 . . 3 𝐴0 ∈ ℂ
5 5cn 12260 . . 3 5 ∈ ℂ
6 5nn0 12448 . . . 4 5 ∈ ℕ0
7 eqid 2739 . . . 4 𝐴0 = 𝐴0
85addlidi 11325 . . . 4 (0 + 5) = 5
91, 2, 6, 7, 8decaddi 12695 . . 3 (𝐴0 + 5) = 𝐴5
10 eqid 2739 . . . 4 𝐴5 = 𝐴5
11 eqid 2739 . . . 4 (𝐴 + 1) = (𝐴 + 1)
12 5p5e10 12706 . . . 4 (5 + 5) = 10
131, 6, 6, 10, 11, 12decaddci2 12697 . . 3 (𝐴5 + 5) = (𝐴 + 1)0
144, 5, 9, 13sqmid3api 42760 . 2 (𝐴5 · 𝐴5) = ((𝐴0 · (𝐴 + 1)0) + (5 · 5))
15 2nn0 12445 . . 3 2 ∈ ℕ0
16 5t5e25 12738 . . 3 (5 · 5) = 25
17 peano2nn0 12468 . . . . 5 (𝐴 ∈ ℕ0 → (𝐴 + 1) ∈ ℕ0)
181, 17ax-mp 5 . . . 4 (𝐴 + 1) ∈ ℕ0
1918, 2deccl 12650 . . 3 (𝐴 + 1)0 ∈ ℕ0
201, 18nn0mulcli 12466 . . . 4 (𝐴 · (𝐴 + 1)) ∈ ℕ0
211, 18, 2decmulnc 12702 . . . . 5 (𝐴 · (𝐴 + 1)0) = (𝐴 · (𝐴 + 1))(𝐴 · 0)
221nn0cni 12440 . . . . . . 7 𝐴 ∈ ℂ
2322mul01i 11327 . . . . . 6 (𝐴 · 0) = 0
2423deceq2i 12643 . . . . 5 (𝐴 · (𝐴 + 1))(𝐴 · 0) = (𝐴 · (𝐴 + 1))0
2521, 24eqtri 2762 . . . 4 (𝐴 · (𝐴 + 1)0) = (𝐴 · (𝐴 + 1))0
26 2cn 12247 . . . . 5 2 ∈ ℂ
2726addlidi 11325 . . . 4 (0 + 2) = 2
2820, 2, 15, 25, 27decaddi 12695 . . 3 ((𝐴 · (𝐴 + 1)0) + 2) = (𝐴 · (𝐴 + 1))2
2919nn0cni 12440 . . . . . 6 (𝐴 + 1)0 ∈ ℂ
3029mul02i 11326 . . . . 5 (0 · (𝐴 + 1)0) = 0
3130oveq1i 7366 . . . 4 ((0 · (𝐴 + 1)0) + 5) = (0 + 5)
3231, 8eqtri 2762 . . 3 ((0 · (𝐴 + 1)0) + 5) = 5
331, 2, 15, 6, 7, 16, 19, 28, 32decma 12686 . 2 ((𝐴0 · (𝐴 + 1)0) + (5 · 5)) = (𝐴 · (𝐴 + 1))25
3414, 33eqtri 2762 1 (𝐴5 · 𝐴5) = (𝐴 · (𝐴 + 1))25
Colors of variables: wff setvar class
Syntax hints:   = wceq 1547  wcel 2119  (class class class)co 7356  0cc0 11029  1c1 11030   + caddc 11032   · cmul 11034  2c2 12227  5c5 12230  0cn0 12428  cdc 12635
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1802  ax-4 1816  ax-5 1917  ax-6 1974  ax-7 2015  ax-8 2121  ax-9 2129  ax-10 2152  ax-11 2168  ax-12 2189  ax-ext 2711  ax-sep 5218  ax-nul 5228  ax-pow 5294  ax-pr 5362  ax-un 7678  ax-resscn 11086  ax-1cn 11087  ax-icn 11088  ax-addcl 11089  ax-addrcl 11090  ax-mulcl 11091  ax-mulrcl 11092  ax-mulcom 11093  ax-addass 11094  ax-mulass 11095  ax-distr 11096  ax-i2m1 11097  ax-1ne0 11098  ax-1rid 11099  ax-rnegex 11100  ax-rrecex 11101  ax-cnre 11102  ax-pre-lttri 11103  ax-pre-lttrn 11104  ax-pre-ltadd 11105
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 854  df-3or 1093  df-3an 1094  df-tru 1550  df-fal 1560  df-ex 1787  df-nf 1791  df-sb 2074  df-mo 2543  df-eu 2573  df-clab 2718  df-cleq 2731  df-clel 2814  df-nfc 2888  df-ne 2935  df-nel 3039  df-ral 3054  df-rex 3064  df-reu 3345  df-rab 3392  df-v 3433  df-sbc 3724  df-csb 3832  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3903  df-nul 4262  df-if 4455  df-pw 4531  df-sn 4556  df-pr 4558  df-op 4562  df-uni 4839  df-iun 4923  df-br 5073  df-opab 5135  df-mpt 5154  df-tr 5180  df-id 5513  df-eprel 5518  df-po 5526  df-so 5527  df-fr 5571  df-we 5573  df-xp 5624  df-rel 5625  df-cnv 5626  df-co 5627  df-dm 5628  df-rn 5629  df-res 5630  df-ima 5631  df-pred 6252  df-ord 6313  df-on 6314  df-lim 6315  df-suc 6316  df-iota 6441  df-fun 6487  df-fn 6488  df-f 6489  df-f1 6490  df-fo 6491  df-f1o 6492  df-fv 6493  df-riota 7313  df-ov 7359  df-oprab 7360  df-mpo 7361  df-om 7807  df-2nd 7932  df-frecs 8221  df-wrecs 8252  df-recs 8301  df-rdg 8339  df-er 8633  df-en 8884  df-dom 8885  df-sdom 8886  df-pnf 11172  df-mnf 11173  df-ltxr 11175  df-sub 11370  df-nn 12166  df-2 12235  df-3 12236  df-4 12237  df-5 12238  df-6 12239  df-7 12240  df-8 12241  df-9 12242  df-n0 12429  df-dec 12636
This theorem is referenced by:  sqn5ii  42763
  Copyright terms: Public domain W3C validator