Skip to main content

Questions tagged [abstract-algebra]

Abstract algebra is the study of algebraic structures, including groups, rings, fields, vector spaces, and the like.

20 votes
1 answer
1k views

Without using any built-in factoring/polynomial functions, factor a polynomial completely into irreducibles over the integers or a finite field. Input Your program/function will receive some prime (or ...
Justin's user avatar
  • 21.5k
44 votes
9 answers
2k views

While idly twisting my Rubik's cube around, my son noticed that it kept going back to the solved state. I'm pretty sure he thought this was some sort of voodoo magic at first, but I explained that if ...
Geobits's user avatar
  • 19.7k
21 votes
7 answers
3k views

In this challenge posed by xnor, we were asked to implement XOR multiplication. In this challenge the goal is to find the first n XOR primes. XOR primes are very ...
TheNumberOne's user avatar
  • 11.6k
18 votes
7 answers
3k views

Implement polynomial long division, an algorithm that divides two polynomials and gets the quotient and remainder: (12x^3 - 5x^2 + 3x - 1) / (x^2 - 5) = 12x - 5 R 63x - 26 In your programs, you will ...
Ming-Tang's user avatar
  • 6,095
44 votes
17 answers
2k views

Intro There are 3 nails in the wall. You've got a piece of string that is fixed to the picture frame with both ends. To hang the picture, you entangled the string with the nails. But before letting ...
flawr's user avatar
  • 44.1k
40 votes
4 answers
4k views

Disclaimer: This does not do any justice on the rich topic of elliptic curves. It is simplified a lot. As elliptic curves recently got a lot of media attention in the context of encryption, I wanted ...
flawr's user avatar
  • 44.1k
27 votes
27 answers
4k views

Your task is to given two integer numbers, a and b calculate the modular multiplicative inverse of a modulo b, if it exists. ...
user avatar
15 votes
4 answers
489 views

Background Last time, we counted groups of a given size, which is a non-trivial problem. This time, we'll only count Abelian groups, i.e., groups with a commutative operation. Formally, a group (G, ∗) ...
Dennis's user avatar
  • 212k
14 votes
15 answers
2k views

The dihedral group \$D_4\$ is the symmetry group of the square, that is the moves that transform a square to itself via rotations and reflections. It consists of 8 elements: rotations by 0, 90, 180, ...
xnor's user avatar
  • 150k
11 votes
6 answers
2k views

Overview Given the integer representation of three elements in GF(2^64), give the product of the first two elements over GF(2^64) with the reducing polynomial defined as the polynomial m such that m(...
eaglgenes101's user avatar
137 votes
11 answers
15k views

We all know that \$(-a) \times (-a) = a \times a\$ (hopefully), but can you prove it? Your task is to prove this fact using the ring axioms. What are the ring axioms? The ring axioms are a list of ...
Wheat Wizard's user avatar
  • 104k
29 votes
26 answers
4k views

Given some positive integer \$n\$ that is not a square, find the fundamental solution \$(x,y)\$ of the associated Pell equation $$x^2 - n\cdot y^2 = 1$$ Details The fundamental \$(x,y)\$ is a pair of ...
flawr's user avatar
  • 44.1k
25 votes
2 answers
2k views

This question is a part of the lean LotM. A ring is a type of structure that takes the rules of addition and multiplication we are familiar with and abstracts them, so we can reason about them. To do ...
Wheat Wizard's user avatar
  • 104k
23 votes
3 answers
823 views

Groups In abstract algebra, a group is a tuple \$(G,\ast)\$, where \$G\$ is a set and \$\ast\$ is a function \$G\times G\rightarrow G\$ such that the following holds: For all \$x, y, z\$ in \$G\$, \$(...
Dennis's user avatar
  • 212k
22 votes
9 answers
5k views

The task is the following. Given an integer x (such that x modulo 100000000003 is not equal ...
user avatar

15 30 50 per page