mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Miscellaneous Math

Reply
 
Thread Tools
Old 2018-03-09, 04:05   #12
carpetpool
 
carpetpool's Avatar
 
"Sam"
Nov 2016

22×83 Posts
Post

Quote:
Originally Posted by JM Montolio A View Post

Solve: 29(5^m)-11 = 13*D
This can be done with basic algebra and modular math.

To get a set of basic solutions (m, D) write out:

29*5^m-11 = 0 (mod 13)

29*5^m = 11 (mod 13)

5^m = 8 (mod 13)

m = 3 (mod 4).

So for any integer n,

m = 3*n+4, D = (29*5^(3*n+4)-11)/13

will be a solution to

29(5^m)-11 = 13*D

as you put it.
carpetpool is offline   Reply With Quote
Old 2018-03-09, 05:00   #13
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by JM Montolio A View Post
29(5^M)-11=13D.
The solutions are M = 4k + 3, D = (3625*625^k - 11)/13.

If b and n are relatively prime, you can find the general solutions to k(b^m) - z = nd by finding the order of b mod n, computing k(b^m) - z for m from 1 to the order, and taking any values which result in 0; these values, plus an arbitrary variable k times the order, are the possible values of m (and the d values can be computed from them).

The case where b and n have a common divisor is not essentially different; you check the small cases, where some p | b and p^e | n, but p^e does not divide b, individually, then look at the order of b with all the common primes divided out mod n with all the common primes divided out.

In the first case you could have 0 solutions or infinitely many; in the second case you could have finitely many or infinitely many.

Edit: see carpetpool's post above.

Last fiddled with by CRGreathouse on 2018-03-09 at 05:01
CRGreathouse is offline   Reply With Quote
Old 2018-03-09, 05:43   #14
axn
 
axn's Avatar
 
Jun 2003

33×199 Posts
Default

OP sounds suspiciously like they're trying to sieve k*b^n+c form (variable n), in which case, just use newpgen or srsieve
axn is offline   Reply With Quote
Old 2018-03-09, 09:12   #15
JM Montolio A
 
Feb 2018

25×3 Posts
Default

Are the cumulative product of (B^g).

Last step not.
JM Montolio A is offline   Reply With Quote
Old 2018-03-09, 09:20   #16
JM Montolio A
 
Feb 2018

9610 Posts
Default

Are the cumulative product of (B^g).

Starting with 1.

And not the last step.

Thats gives "bits one of D"="number steps".

Rules are related to tserie used.

Mersenne is tserie "n+e = (2^g)(e')".
Most general: n+e=(B^g)(e')

Any tserie as a equation.

For Mersenne, (eLast)(B^M)-(eStart)=n*D.

Collatz is also a tserie. 1+3e=(2^g)(e').

But there are others tserie.

Thanks for your interest.

JMM
JM Montolio A is offline   Reply With Quote
Old 2018-03-09, 13:50   #17
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

838410 Posts
Default

Quote:
Originally Posted by carpetpool View Post
This can be done with basic algebra and modular math.

To get a set of basic solutions (m, D) write out:

29*5^m-11 = 0 (mod 13)

29*5^m = 11 (mod 13)

5^m = 8 (mod 13)

m = 3 (mod 4).

So for any integer n,

m = 3*n+4, D = (29*5^(3*n+4)-11)/13

will be a solution to

29(5^m)-11 = 13*D

as you put it.
3 mod 4 is actually 4n+3.
science_man_88 is offline   Reply With Quote
Old 2018-03-09, 15:29   #18
carpetpool
 
carpetpool's Avatar
 
"Sam"
Nov 2016

22·83 Posts
Post

Quote:
Originally Posted by science_man_88 View Post
3 mod 4 is actually 4n+3.
Too late to fix it but thanks for pointing out.
carpetpool is offline   Reply With Quote
Old 2018-03-09, 15:32   #19
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

100000110000002 Posts
Default

Quote:
Originally Posted by carpetpool View Post
Too late to fix it but thanks for pointing out.
In fact you can prove D is 18 mod 20 fairly quickly. Etc.
science_man_88 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
The FBI wants YOU to help solve a murder ixfd64 Puzzles 4 2011-03-30 12:25
Solve for mod function flouran Miscellaneous Math 23 2009-01-04 20:03
An Equation to Solve davar55 Puzzles 3 2008-10-09 00:35
Many CAS not able to solve integral nuggetprime Miscellaneous Math 1 2007-06-26 22:04
Solve this equation davar55 Puzzles 52 2007-06-26 21:41

All times are UTC. The time now is 21:57.


Fri Jun 24 21:57:26 UTC 2022 up 71 days, 19:58, 0 users, load averages: 1.20, 1.36, 1.27

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔