1
20
submitted 3 hours ago* (last edited 54 minutes ago) by the16bitgamer@programming.dev to c/math@lemmy.world

So what's the problem.

eBay, purveyor of buying and selling the stuff from your Grandma's house, or from China. Has a IMHO terrible fee structure which works like this.

You sell the item you want (S), then it gets taxed (T). That taxed sale then has two additional fees applied to it, one for transaction (E), another for international (I). Finally a static fee is needed for the listing itself (F). Oh and all of this is taxed.

This results in the following Formula to calculate how much you will actually make from a sale (P).

S - ST - ([ES*(1+T)])T - ([IS*(1+T)])T - F(1+T) = P

This is stupid, and I shouldn't be taxed on my tax, but whatever. I just need to math my way out of this. It took all evening but I was able to take the formula above and isolate S

P+F+F(1*T)

------------------------------------------- = S

1-T-E-E*(2T+T^2 )-I-I(2*T+T^2 )

The result of this is a sale prince which accounts for eBay's fees

I've attached a screenshot to my excel sheet to prove that it works. I'm going to bed.

2
11
submitted 1 week ago* (last edited 1 week ago) by Kaelygon@lemmy.world to c/math@lemmy.world

I have been exploring this particular prime 13238717 which is sum of two squares and has Pythagorean triple.
I found this interesting property and so far I haven't found any texts about what I wrote below.

This is just my conjecture, I have no formal proof and I have only tested few small primes.
I haven't found any counter examples yet, but I have checked only few dozen primes and couple composites by hand.

I modified ChatGPT script which lists numbers that have both forms P^2=a^2+b^2 and P=c^2+d^2 and it appears to generate the exact same sequence as: A004431
5 10 13 17 20 25 26 29 34 37 40 41 45 50...

Numbers P seem to always have both following forms Hypotenuse numbers (Pythagorean triples) A009003: P^2=a^2+b^2
Numbers that are the sum of 2 squares A001481: P=c^2+d^2

Wolfram notes, "-- one side of every Pythagorean triple is divisible by 3, another by 4, and another by 5."
I noticed if P is prime and have both forms: one of the Pythagorean sides (a or b) whichever is divisible by 4 has the exact factors that construct both of the square sum components 'c' and 'd', with the exception of extra factor '2'.

Here's the conjecture put out more formally based solely on my observations:
Pythagorean sides: a,b and square sum componentsc,d are natural numbers and n#, m# are prime factors.

a^2 + b^2 = P^2 (pyth. triple)  
c^2 + d^2 = P (sum of two squares) 

(a or b) mod 4 = 0
(a or b) factors are = 2* (n1*n2*n3...) * (m1*m2*m3...)
c = n1*n2*n3...
d = m1*m2*m3...
(a or b) = 2*(c*d)

Here's couple examples:
primes 2 and 5 are trivial exceptions as 1 isn't a prime factor.

1^2+2^2=5  
1^2+1^2=2

Prime: 13 (first non-trivial prime case)

5^2 + 12^2 = 13^2 (pyth. triple) 
2^2 + 3^2 = 13 (sum of two squares)  

12 factors are 2 2 3
12 mod 4 = 0
c=2
d=3
12 = 2* (2*3)

Prime: 821

429^2 + 700^2 = 821^2 (pyth. triple)  
14^2 + 25^2 = 821 (sum of two squares)  
  
700 mod 4 = 0
700 factors are 2 (5 5) (2 7)
c = 5*5 = 25
d = 2*7 = 14
700 = 2* (25*14)

prime: 13238717

1315508^2 + 13173195^2 = 13238717^2 (pyth. triple)
181^2 + 3634^2 = 13238717 (sum of two squares)  
  
1315508 mod 4 = 0
1315508 factors are 2 (2 23 79) (181)
c=181
d=2*23*79=3634
1315508 = 2* (181*3634)

Some composites have multiple ways to write sum of two squares, which each have different (a or b) counterpart, but not necessarily divisible by 4. composite: 260

(four valid pythagorean side pairs)  
132^2+224^2 = 64^2+252^2 = 100^2+240^2 = 156^2+208^2 = 260^2 
(two valid square sums)
8^2+14^2 = 2^2+16^2 = 260

8^2+14^2:
224 mod 4 = 0
224 factors 2 (2 2 2) (2 7)
c= 2*2*2 = 8
d= 2*7 = 14
224/(8*14) = 2
  
2^2+16^2:
64 mod 4 = 0
64 factors 2 (2) (2 2 2 2)
c = 2
d = 2^4 = 16
64 = 2* (2*16)

composite: 58

40^2+42^2=58^2 (pyth. triple)  
3^2+7^2=58  (sum of two squares) 

42 mod 4 = 2 
Not 0 mod 4 congruent, unlike primes. 
Might be result of both c, d being odd.
42 factors 2 3 7
c=3
d=7
58 = 2* (3*7)

Generally it seems that there's always at least one Pythagorean component where (a or b) = c*d*2, but I haven't quite figured why this is the case.

I reckon it has something to do with the fact that mod 4 congruence of 4k+1 doesn't change when you square it: (4k+1)^2 = 8k*(2k+1)+1
Additionally the fact that when sum of two squares is prime or odd, exactly one of the components is always odd, which may explain why (a or b) isn't always divisible by 4 with composites.

ChatGPT wrote a counterexample finder I checked up to 100 000.

To my knowledge there isn't straight up equation that would spit out a Pythagorean triple or sum of square solutions for any integer.
There might be some other way to prove or disprove that a or b = c*d*2 when P is prime, but so far I couldn't think of any.
It might be something obvious that I am missing, or it's simply all about congruence rules of additions and multiplications.

Again, this is just what I've found from my few tests and I don't have any formal proof. I couldn't find any papers or posts specifically about this. This is nothing too important, but I found it interesting enough to share.
I just write bad python code out of interest in number theory without an university degree.


Thanks for the solution goes to: @0v0
Here's summary how I understood this:
Brahmagupta–Fibonacci identity

P=c²+d²
Squaring 'P' results in:
P²=(c²-d²)² + (2cd)²

These 'P²' sum components are equivalent to the Pythagorean legs 'a' and 'b':
a=c²-d²
b=2*c*d

Hence, '(a or b)' always contains the factors '2' and all factors of 'c' and 'd'. 

Additionally, the 2*c*d divisibility by 4 is result of P being odd.
2*c*d being divisible by 4 is true for any odd number as one of the sum of square components 'c' or 'd' must be even.

c=2*k
b = 2*c*d = 4*k*d
3
7
4
9
5
4

In which Vihart constructs a 6-pentagon polylink out of (U.S.) Smarties. This candy as called "Rockets" in the U.K., Canada, and most other places.

6
5
submitted 1 month ago by Euler_eix@lemmy.world to c/math@lemmy.world
7
10
8
21

One of the most interesting uses of diffusion models I've seen thus far.

9
4
10
10

The second instalment of Vihart's recent scutoid series. I hope there are more to come.

11
77
submitted 2 months ago by kalkulat@lemmy.world to c/math@lemmy.world
12
7

One of the OG mathematics communicators on YouTube is back.

13
5
14
9
Archives of Alexander Grothendieck (French) (grothendieck.umontpellier.fr)
submitted 2 months ago by xiao@sh.itjust.works to c/math@lemmy.world

This site contains the mathematical archives of Alexander Grothendieck from 1949 to 1991. There you will find manuscripts, "typescripts", sometimes printed documents, in a classification essentially faithful (when it existed) to the author's classification . Of the 28,000 (approximately) pages in this collection, only 18,000 (approximately) are currently accessible

I hope some of us will benefit from his knowledge.

15
19
submitted 2 months ago* (last edited 2 months ago) by ruffsl@programming.dev to c/math@lemmy.world

Related publication:

16
10
17
4
submitted 2 months ago by Artisian@lemmy.world to c/math@lemmy.world

Open source repo in link, and most recent patch was just a few months ago! Single player had several nice puzzles, took a nice 30 minutes. Includes 2 player mode and a level creator.

Note it's 'hold leftclick and swipe' to cut an edge in the browser/pc.

18
11
19
6
arXiv forum on accessibility Sept 2024 (accessibility2024.arxiv.org)
submitted 3 months ago by Artisian@lemmy.world to c/math@lemmy.world

You may have seen that cool new arXiv feature 'experimental HTML' - this is about stuff like that! Latex (and hence a lot of math research) is not well suited to screen readers, but HTML is. If you'd like to learn more about how your paper can be in the format, or just about how to make research more accessible, this could be useful!

20
6
submitted 3 months ago by xiao@sh.itjust.works to c/math@lemmy.world

The art of scientific prediction has seeped into every aspect of our lives, influencing our habits and perspectives. Weather, transport, space conquest, architecture and even agriculture: our daily lives are inextricably linked to forecasts. In this first season, Cédric Villani takes us into the thrilling story of the invention of differential equations, calling on Isaac Newton, Christian Huygens, Leonhard Euler, Henri Poincaré...

Podcast (4x15min) by Cédric Villani

Very nice vulgarization !

21
8
submitted 3 months ago by xiao@sh.itjust.works to c/math@lemmy.world

The Collège de France promotes and teaches research currently being carried out in sciences, letters and the arts. Courses, seminars and conferences are open to all and free.

Everyone is welcome as long as places are available.

Just love this concept

22
8
submitted 4 months ago by xiao@sh.itjust.works to c/math@lemmy.world

MacTutor is a free online resource containing biographies of more than 3000 mathematicians and over 2000 pages of essays and supporting materials.

MacTutor is constantly expanding and developing.

MacTutor was created and is maintained by Edmund Robertson and John O'Connor of the School of Mathematics and Statistics at the University of St Andrews, and is hosted by the University Their contributions to the history of mathematics have been recognised by Numerous Awards including the Hirst Prize of the London Mathematical Society in 2015.

23
13

I've been dabbling in mental divisibility rules over the past few months, but hadn't previously come across these diagrams to track the remainder. Neat trick, and kind of artistic too.

24
11

Another entertaining Numberphile video. I just wish they dug into the more complex maths to account for the non-equal probability of each Pokémon.

25
10
view more: next ›

math

803 readers
17 users here now

General community for all things mathematics on @lemmy.world

Submit link and text posts about anything at all related to mathematics.

Questions about mathematical topics are allowed, but NO HOMEWORK HELP. Communities for general math and homework help should be firmly delineated just as they were on reddit.

founded 1 year ago
MODERATORS