Currently there may be errors shown on top of a page, because of a missing Wiki update (PHP version and extension DPL3).
Navigation
Topics Help • Register • News • History • How to • Sequences statistics • Template prototypes

Template:Mod

From Prime-Wiki
Jump to: navigation, search

Purpose

Display a mathmatical modulo equation as x [math]\displaystyle{ \equiv }[/math] y mod z.

Usage

  • First 3 parameters are required (text or numbers possible), if 4th is set, display as negation.
  • 1. parameter x
  • 2. parameter y
  • 3. parameter z
  • 4. parameter if set display [math]\displaystyle{ \not\equiv }[/math]

Calling

*{{Mod|1|2|3}}
*{{Mod|n|0|4}}
*{{Mod|Variable|3|10|x}}

creates

  • 1 [math]\displaystyle{ \equiv\, }[/math]2[math]\displaystyle{ \,\bmod\, }[/math]3
  • n [math]\displaystyle{ \equiv\, }[/math]0[math]\displaystyle{ \,\bmod\, }[/math]4
  • Variable [math]\displaystyle{ \not }[/math][math]\displaystyle{ \equiv\, }[/math]3[math]\displaystyle{ \,\bmod\, }[/math]10