Newsgroups: sci.math
From: Mensanator <mensana...@aol.com>
Date: Tue, 6 Oct 2009 15:40:39 -0700 (PDT)
Local: Tues, Oct 6 2009 10:40 pm
Subject: Re: Application of Diophantine equations
On Oct 6, 4:40 pm, "maryK" <inva...@invilidinvalid.com> wrote:
> "Konstantin Smirnov" <konstantin.e.smir...@gmail.com> wrote in message Linear ones are useful, a form of which is the Hailstone Function > news:8cbfba3b-d0fb-4dc9-a3f4-ea0cafcf3634@a6g2000vbp.googlegroups.com... > > Dear number theorists, > > Thanks > not much use for them X*a - Z in the Collatz Conjecture (where X,Y,Z are constants and we want One nice thing is that every Yth 1st generation solution is a second If you're lucky, and k = m = n = ..., then a closed form equation can Type12MH = 2**(6*((i-1)*9**(k-1)+(9**(k-1)-1)//2+1)-1)-1 This was derived from solving the linear congruence X*a == Z (mod Y) If you are unlucky, k != m != n ... But with a little cleverness, you can make a recursive function with a = gmpy.invert(X,Y) * Z % Y and to get higher generations, merely use a = (((gmpy.invert(xyz[1]-xyz[0],xyz[1]**(k-1))*(xyz[1]**(k-1)- which solves the multigenerational linear Diophantine equation where For example >>> sv = [i for i in range(666)] # sequence of 666 consecutive numbers 211634 # it has that many digits! >>> xyz = cf.calc_xyz(sv) >>> a = cf.geni(666,666,xyz) # find the 666th instance of the 666th generation >>> gmpy.numdigits(a) You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||