Skip to main content

Questions tagged [number-theory]

Questions on the number-theoretic functionality of Mathematica.

0 votes
0 answers
44 views

When and how CoprimeQ[a, b, c] is evaluated for generic a, b, c? [closed]

Most Mathematica functions return input sentence unevaluated, when there is no simple solution, or, the answer cannot be determined from the input data. For example, ...
A. Kato's user avatar
  • 1,460
0 votes
0 answers
41 views

Finding primes, so that the given eta product is hecke eigenform

I'm trying to write a code on mathematica which detects the prime numbers, p, for which the user given eta product is a hecke eigenform for that hecke operator T_p.
Hemjyoti Nath's user avatar
2 votes
0 answers
47 views

How to generate lattice by integrating over curves on a modular form domain plot?

I was watching this video (2:30 of https://youtu.be/zLEyIT_BCgk?si=ji5NyjR7vcwzaNxi ). Here in the video he said that to get the lattice , we just integrate over the curve(silver line) and we will ...
Kazi Abu Rousan's user avatar
9 votes
3 answers
1k views

Taxicab Geometry

According to taxicab geometry, there are 1226 possible paths from A(2,5) to B(7,9), all with a distance of 9 units, |2-7|+|9-5|=9. I wanted to write a code where I could be obtaining the plots of some ...
Rubens Vilhena Fonseca's user avatar
2 votes
2 answers
173 views

Are there other methods to list the coprime arrays within the array? [duplicate]

The list array is: list = Subsets[Range[2, 8], {2}] get the list is: ...
csn899's user avatar
  • 4,521
0 votes
1 answer
134 views

Mathematica code to compute a constant

I am reading an interesting paper One of the numbers ζ(5), ζ(7), ζ(9), ζ(11) is irrational by Zudilin. We fix odd numbers $q$ and $r$, $q\geq r+4$ and a tuple $\eta_0,\eta_1,...,\eta_q$ of positive ...
Max's user avatar
  • 155
6 votes
4 answers
253 views

Generation of rational numbers under constraints

Working this question on Mathematics Stack Exchange, I have the following questions: how to generate a rational number $a$ such that $\sqrt{a^2-1}$ be also rational? This is the case of $a=\frac 54$. ...
Claude Leibovici's user avatar
4 votes
5 answers
496 views

How to check if multiplication requires carries?

For some purposes I need to know if there are there any carries in the multiplication of two numbers, especially in base-2. How can we do this in Mathematica? Thanks to all, very interesting answers! ...
lesobrod's user avatar
  • 1,849
3 votes
0 answers
75 views

PrimeZetaP evaluation in different versions of Mathematica

PrimeZetaP was introduced in version 7.0. I suspect there were made some changes in the definition of this function in subsequent versions. Is there any user that ...
azerbajdzan's user avatar
  • 20.1k
0 votes
1 answer
98 views

How to find value of variables so that my expression to be perfect squares?

Suppose I have the expression $$\sqrt{p(2-p)} \tag 1$$ and the expression $$ \sqrt{\frac{1}{4}\left( p-2 \right) ^2-\frac{4\left( p-1 \right) ^4}{\left( p-2 \right) ^2}}. \tag 2 $$ The Mathematica ...
narip's user avatar
  • 381
0 votes
1 answer
152 views

PartitionsP for non-integer arguments [closed]

Is there a reason why the function PartitionsP[] does not return anything for non-integer arguments, although there is a way to calculate using Rademacher’s ‘exact’ ...
ftel's user avatar
  • 3
1 vote
0 answers
118 views

Does a(a+1)(a+2)-1=b²+2=10c+3 have solutions over natural numbers? If yes, how many?

It is a question from the math olympiad I was participating in that happened like a month ago. The provided solution turned out to be wrong. It isn't the question itself, but the solution basically ...
Богдан Красновид's user avatar
9 votes
5 answers
3k views

Digits of Pi in colored spiral

In How to make the digits of π go around in a spiral like this? it is described how to plot pi in a spiralform (in my case as binary number): ...
ralf_7's user avatar
  • 93
3 votes
2 answers
178 views

Select a subset in the bit-strings with even 1s overlapped - thank you

Model 1 Consider the permutation list of 4-bit-strings: list = Permutations[{0, 0, 1, 1}, {4}] which outputs: {{0, 0, 1, 1}, {0, 1, 0, 1}, {0, 1, 1, 0}, {1, 0, 0, ...
wonderich's user avatar
  • 923
8 votes
2 answers
635 views

Better code for Ramsey partitions

Ramsey partitions for parameters $a$ and $b$ are certain integer partition of $a+b$ developed by McAvaney, Robertson, and Webb (Combinatorica 1992) for applications in fair division problems where two ...
Brian Hopkins's user avatar

15 30 50 per page
1
2 3 4 5
31