*Author

Offline SavageTopic starter

  • Jr. Member
  • **
  • Posts: 133
  • Country: us
  • Reputation Power: 2
  • Savage is a Spark waiting for a buff.
  • Elements Veteran
Divisors from a Prime factorization https://elementscommunity.org/forum/index.php?topic=55636.msg1154457#msg1154457
« on: September 08, 2014, 12:52:06 am »
Say you gave me the prime factorization 3^5 x 5^5
A system to list every possible divisor would be (of course 1 is included)
start with one (3) and do 3^1, 3^2, 3^3...3^5      do the next single digit 5^1, 5^2, 5^3...5^5
I know how to do the rest...
but what happens when we want to know say (2^a)(3^b)(5^c)? I don't know a system to help me list all possible divisors

I would apply the 2 digit system in doing all 2's and 3's as well as all 3's and 5's and doing all 2's and 5's

but is there a non confusing way to list doing it when all 3 are in it?

Offline CuCN

  • Hero Member
  • *****
  • Posts: 1756
  • Reputation Power: 25
  • CuCN is a proud Wyrm taking wing for the first time.CuCN is a proud Wyrm taking wing for the first time.CuCN is a proud Wyrm taking wing for the first time.CuCN is a proud Wyrm taking wing for the first time.CuCN is a proud Wyrm taking wing for the first time.
  • Toxic
  • Awards: Slice of Elements 5th Birthday CakeSlice of Elements 4th Birthday Cake
Re: Divisors from a Prime factorization https://elementscommunity.org/forum/index.php?topic=55636.msg1154461#msg1154461
« Reply #1 on: September 08, 2014, 01:38:46 am »
So you want a way to list all the possible ordered triples (x,y,z) such that 0<=x<=a, 0<=y<=b, 0<=z<=c. You can set up a correspondence between those and the integers from 0 to (a+1)(b+1)(c+1)-1 by relating (x,y,z) to x(b+1)(c+1)+y(c+1)+z.
This order lists all the factors sorted first by the power of two, then the power of 3, then the power of 5.

Offline iDaire

  • Hero Member
  • *****
  • Posts: 1090
  • Reputation Power: 17
  • iDaire is a Blue Crawler starting to think about his first run.iDaire is a Blue Crawler starting to think about his first run.iDaire is a Blue Crawler starting to think about his first run.
  • Fire Emblem God
Re: Divisors from a Prime factorization https://elementscommunity.org/forum/index.php?topic=55636.msg1154463#msg1154463
« Reply #2 on: September 08, 2014, 02:02:13 am »
I love math, but even I have to ask if you both could slow down.

Offline SavageTopic starter

  • Jr. Member
  • **
  • Posts: 133
  • Country: us
  • Reputation Power: 2
  • Savage is a Spark waiting for a buff.
  • Elements Veteran
Re: Divisors from a Prime factorization https://elementscommunity.org/forum/index.php?topic=55636.msg1154470#msg1154470
« Reply #3 on: September 08, 2014, 03:12:52 am »
So you want a way to list all the possible ordered triples (x,y,z) such that 0<=x<=a, 0<=y<=b, 0<=z<=c. You can set up a correspondence between those and the integers from 0 to (a+1)(b+1)(c+1)-1 by relating (x,y,z) to x(b+1)(c+1)+y(c+1)+z.
This order lists all the factors sorted first by the power of two, then the power of 3, then the power of 5.

Can you please give an example with a=3, b=3, c=3 and show it your way please?

Offline CuCN

  • Hero Member
  • *****
  • Posts: 1756
  • Reputation Power: 25
  • CuCN is a proud Wyrm taking wing for the first time.CuCN is a proud Wyrm taking wing for the first time.CuCN is a proud Wyrm taking wing for the first time.CuCN is a proud Wyrm taking wing for the first time.CuCN is a proud Wyrm taking wing for the first time.
  • Toxic
  • Awards: Slice of Elements 5th Birthday CakeSlice of Elements 4th Birthday Cake
Re: Divisors from a Prime factorization https://elementscommunity.org/forum/index.php?topic=55636.msg1154471#msg1154471
« Reply #4 on: September 08, 2014, 03:20:10 am »
0->(0,0,0)->(2^0)(3^0)(5^0)=1
1->(0,0,1)->(2^0)(3^0)(5^1)=5
2->(0,0,2)->(2^0)(3^0)(5^2)=25
3->(0,0,3)->(2^0)(3^0)(5^3)=125
4->(0,1,0)->(2^0)(3^1)(5^0)=3
5->(0,1,1)->(2^0)(3^1)(5^1)=15
6->(0,1,2)->(2^0)(3^1)(5^2)=75
7->(0,1,3)->(2^0)(3^1)(5^3)=375
8->(0,2,0)->(2^0)(3^2)(5^0)=9
...
15->(0,3,3)->(2^0)(3^3)(5^3)=3375
16->(1,0,0)->(2^1)(3^0)(5^0)=2
17->(1,0,1)->(2^1)(3^0)(5^1)=10
...
62->(3,3,2)->(2^3)(3^3)(5^2)=5400
63->(3,3,3)->(2^3)(3^3)(5^3)=27000

Offline andretimpa

  • Master of Gravity
  • *
  • ******
  • Posts: 3812
  • Country: br
  • Reputation Power: 58
  • andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.
  • OMG how did I get here I'm not good with computers
  • Awards: Slice of Elements 12th Birthday Cake14th Trials - Master of GravitySong of the Day Tourney Most Creative DeckSlice of Elements 11th Birthday Cake13th Trials - Master of GravitySlice of Elements 10th Birthday CakeArt Competition - RedecoratingSlice of Elements 9th Birthday CakeArt Competition: MS Paint #9 WinnerArt Competition: League of the Battle Champion WinnerArt Competition: Foil ArtWeekly Tournament WinnerSlice of Elements 8th Birthday CakeArt Competition: Paint With Elements - The Elemental AvatarsSlice of Elements 7th Birthday CakeCompetition - A Challenge of Challenges1st Place WC Winner: October 20151st Place Weekly Challenge Winner: September 2015Weekly Design August 2015 - GoldWeekly Design July 2015 - SilverSlice of Elements 6th Birthday CakeForum Brawl #4 WinnerPaint with Elements Competition WinnerSlice of Elements 5th Birthday CakeWeekly Tournament WinnerSlice of Elements 4th Birthday Cake
Re: Divisors from a Prime factorization https://elementscommunity.org/forum/index.php?topic=55636.msg1154507#msg1154507
« Reply #5 on: September 08, 2014, 06:01:35 pm »
Also, since N (the set of natural numbers) and N^3 have the same cardinality you could find correspondences in the case where you didn't limited a, b and c (to get all possible products of powers of 2, 3 and 5).

On the other hand, the fundamental theorem of arithmetic implies that you could make a listing by simply ordering 2^a.3^b.5^c in a growing order (this is easier to define, but much more cumbersome to use though):

1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 16, 18, 20, 24, 25, 30, 32, 36, ..., 4500, 5400, 6750, 9000, 13500, 27000

corresponding to (in CuCN's notation):

(0,0,0), (1,0,0), (0,1,0), (2,0,0), (0,0,1), (1,1,0), (3,0,0), (0,2,0), (1,0,1), (2,1,0), (0,1,1), (4,0,0), (1,2,0), (2,0,1), (3,1,0), (0,0,2), (1,1,1), (5,0,0), (2,2,0), ..., (4,4,5), (5,5,4), (3,5,5), (5,4,5), (4,5,5), (5,5,5)


To make it for an unlimited a, b and c it is easier to see it with just 2 and them generalize:

(0,0), (0,1), (1,0), (2,0), (1,1), (0,2), (0,3), (1,2), (2,1), (3,0), ... If you draw these points you'll see that we are covering triangles. To go to 3 we need to cover pyramids:

(0,0,0), (0,0,1), (0,1,0), (1,0,0), (2,0,0), (1,1,0), (0,2,0), (0,1,1), (1,0,1), (0,0,2), (0,0,3), (0,1,2), (1,0,2), (2,0,1), (1,1,1), (0,2,1), (0,3,0), (1,2,0), (2,1,0), (3,0,0), (4,0,0), (3,1,0), (2,2,0), (1,3,0), (0,4,0), (0,3,1), (1,2,1), (2,1,1), (3,0,1), (2,0,2), (1,1,2), (0,2,2), (0,1,3), (1,0,3), (0,0,4), (0,0,5), (0,1,4), (1,0,4), (2,0,3), (1,1,3), (0,2,3), (0,3,2), (1,2,2), (2,1,2), (3,0,2), (4,0,1), (3,1,1), (2,2,1), (1,3,1), (0,4,1), (0,5,0), (1,4,0), (2,3,0), (3,2,0), (4,1,0), (5,0,0), (6,0,0), (5,1,0), ....
« Last Edit: September 08, 2014, 06:24:43 pm by andretimpa »
Every time a graboid evolves, an elemental gets his wings.
:gravity Guild (old), War 9 & 13 (gen) / :time Brawl 2 & 3, War 7 & 14 / :death War 8 & 12 / :fire Brawl 4 / :entropy Brawl 5 / :darkness War 10

Offline SavageTopic starter

  • Jr. Member
  • **
  • Posts: 133
  • Country: us
  • Reputation Power: 2
  • Savage is a Spark waiting for a buff.
  • Elements Veteran
Re: Divisors from a Prime factorization https://elementscommunity.org/forum/index.php?topic=55636.msg1154512#msg1154512
« Reply #6 on: September 08, 2014, 06:32:26 pm »
0->(0,0,0)->(2^0)(3^0)(5^0)=1
1->(0,0,1)->(2^0)(3^0)(5^1)=5
2->(0,0,2)->(2^0)(3^0)(5^2)=25
3->(0,0,3)->(2^0)(3^0)(5^3)=125
4->(0,1,0)->(2^0)(3^1)(5^0)=3
5->(0,1,1)->(2^0)(3^1)(5^1)=15
6->(0,1,2)->(2^0)(3^1)(5^2)=75
7->(0,1,3)->(2^0)(3^1)(5^3)=375
8->(0,2,0)->(2^0)(3^2)(5^0)=9
...
15->(0,3,3)->(2^0)(3^3)(5^3)=3375
16->(1,0,0)->(2^1)(3^0)(5^0)=2
17->(1,0,1)->(2^1)(3^0)(5^1)=10
...
62->(3,3,2)->(2^3)(3^3)(5^2)=5400
63->(3,3,3)->(2^3)(3^3)(5^3)=27000

Thank you very much...that helps quite a bit.
Now, referring to andre's post regarding no restrictions on a,b,c I am still confused on your process in both your system and how you applied it to CuCN's notation.

You start off with (0,0,0), (0,0,1), (0,1,0), (1,0,0), then do (2,0,0)...but then you next say (1,1,0)...why do this step next as opposed to say...after (1,0,0) go to (0,1,1)?
Again, I am just trying to understand the system so I don't get confused if I were to list 100 different sets of (a,b,c) and lost count (that would suck)

Offline CuCN

  • Hero Member
  • *****
  • Posts: 1756
  • Reputation Power: 25
  • CuCN is a proud Wyrm taking wing for the first time.CuCN is a proud Wyrm taking wing for the first time.CuCN is a proud Wyrm taking wing for the first time.CuCN is a proud Wyrm taking wing for the first time.CuCN is a proud Wyrm taking wing for the first time.
  • Toxic
  • Awards: Slice of Elements 5th Birthday CakeSlice of Elements 4th Birthday Cake
Re: Divisors from a Prime factorization https://elementscommunity.org/forum/index.php?topic=55636.msg1154513#msg1154513
« Reply #7 on: September 08, 2014, 06:35:48 pm »

To make it for an unlimited a, b and c it is easier to see it with just 2 and them generalize:

(0,0), (0,1), (1,0), (2,0), (1,1), (0,2), (0,3), (1,2), (2,1), (3,0), ... If you draw these points you'll see that we are covering triangles. To go to 3 we need to cover pyramids:

(0,0,0), (0,0,1), (0,1,0), (1,0,0), (2,0,0), (1,1,0), (0,2,0), (0,1,1), (1,0,1), (0,0,2), (0,0,3), (0,1,2), (1,0,2), (2,0,1), (1,1,1), (0,2,1), (0,3,0), (1,2,0), (2,1,0), (3,0,0), (4,0,0), (3,1,0), (2,2,0), (1,3,0), (0,4,0), (0,3,1), (1,2,1), (2,1,1), (3,0,1), (2,0,2), (1,1,2), (0,2,2), (0,1,3), (1,0,3), (0,0,4), (0,0,5), (0,1,4), (1,0,4), (2,0,3), (1,1,3), (0,2,3), (0,3,2), (1,2,2), (2,1,2), (3,0,2), (4,0,1), (3,1,1), (2,2,1), (1,3,1), (0,4,1), (0,5,0), (1,4,0), (2,3,0), (3,2,0), (4,1,0), (5,0,0), (6,0,0), (5,1,0), ....

This isn't necessary at all, because a, b, and c will always be finite. The ordering I provided works for all finite a, b, and c.

Offline andretimpa

  • Master of Gravity
  • *
  • ******
  • Posts: 3812
  • Country: br
  • Reputation Power: 58
  • andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.
  • OMG how did I get here I'm not good with computers
  • Awards: Slice of Elements 12th Birthday Cake14th Trials - Master of GravitySong of the Day Tourney Most Creative DeckSlice of Elements 11th Birthday Cake13th Trials - Master of GravitySlice of Elements 10th Birthday CakeArt Competition - RedecoratingSlice of Elements 9th Birthday CakeArt Competition: MS Paint #9 WinnerArt Competition: League of the Battle Champion WinnerArt Competition: Foil ArtWeekly Tournament WinnerSlice of Elements 8th Birthday CakeArt Competition: Paint With Elements - The Elemental AvatarsSlice of Elements 7th Birthday CakeCompetition - A Challenge of Challenges1st Place WC Winner: October 20151st Place Weekly Challenge Winner: September 2015Weekly Design August 2015 - GoldWeekly Design July 2015 - SilverSlice of Elements 6th Birthday CakeForum Brawl #4 WinnerPaint with Elements Competition WinnerSlice of Elements 5th Birthday CakeWeekly Tournament WinnerSlice of Elements 4th Birthday Cake
Re: Divisors from a Prime factorization https://elementscommunity.org/forum/index.php?topic=55636.msg1154515#msg1154515
« Reply #8 on: September 08, 2014, 06:59:52 pm »
0->(0,0,0)->(2^0)(3^0)(5^0)=1
1->(0,0,1)->(2^0)(3^0)(5^1)=5
2->(0,0,2)->(2^0)(3^0)(5^2)=25
3->(0,0,3)->(2^0)(3^0)(5^3)=125
4->(0,1,0)->(2^0)(3^1)(5^0)=3
5->(0,1,1)->(2^0)(3^1)(5^1)=15
6->(0,1,2)->(2^0)(3^1)(5^2)=75
7->(0,1,3)->(2^0)(3^1)(5^3)=375
8->(0,2,0)->(2^0)(3^2)(5^0)=9
...
15->(0,3,3)->(2^0)(3^3)(5^3)=3375
16->(1,0,0)->(2^1)(3^0)(5^0)=2
17->(1,0,1)->(2^1)(3^0)(5^1)=10
...
62->(3,3,2)->(2^3)(3^3)(5^2)=5400
63->(3,3,3)->(2^3)(3^3)(5^3)=27000

Thank you very much...that helps quite a bit.
Now, referring to andre's post regarding no restrictions on a,b,c I am still confused on your process in both your system and how you applied it to CuCN's notation.

You start off with (0,0,0), (0,0,1), (0,1,0), (1,0,0), then do (2,0,0)...but then you next say (1,1,0)...why do this step next as opposed to say...after (1,0,0) go to (0,1,1)?
Again, I am just trying to understand the system so I don't get confused if I were to list 100 different sets of (a,b,c) and lost count (that would suck)

The link with CuCN's notation is that (x,y,z) -> (2^x)(3^y)(5^z)

I added a picture about what I meant with covering triangles and pyramids



Note that you first go through all the (x,y,z) such that x+y+z = 1, then x+y+z = 2, x+y+z = 3, etc. when you do it like this. But if you want to restrict the exponents CuCN gave the simplest answer imo.
Every time a graboid evolves, an elemental gets his wings.
:gravity Guild (old), War 9 & 13 (gen) / :time Brawl 2 & 3, War 7 & 14 / :death War 8 & 12 / :fire Brawl 4 / :entropy Brawl 5 / :darkness War 10

Offline SavageTopic starter

  • Jr. Member
  • **
  • Posts: 133
  • Country: us
  • Reputation Power: 2
  • Savage is a Spark waiting for a buff.
  • Elements Veteran
Re: Divisors from a Prime factorization https://elementscommunity.org/forum/index.php?topic=55636.msg1154536#msg1154536
« Reply #9 on: September 08, 2014, 09:02:52 pm »
What about this method for list notation:

2, 2^2, 2^3,...,2^a
3, 3^2,...,3^b
5,...,5^c

Then for doubles: follow the pattern of exponent growth:

2*3, 22*3,...2a3
2*32, 2232,..., 2a32
.
.
.
2*3b, 223b,..., 2a3b

and then do the same for 2*5 and 3*5

For triples: would something like this be better off for a list?

2*3*5, 223*5, 233*5,..., 2a3*5
2*325, 2232*5, 2332*5,...,2a32*5
.
.
.
2*3b5,..........................,2a3b5
« Last Edit: September 08, 2014, 09:11:31 pm by Savage »

Offline CuCN

  • Hero Member
  • *****
  • Posts: 1756
  • Reputation Power: 25
  • CuCN is a proud Wyrm taking wing for the first time.CuCN is a proud Wyrm taking wing for the first time.CuCN is a proud Wyrm taking wing for the first time.CuCN is a proud Wyrm taking wing for the first time.CuCN is a proud Wyrm taking wing for the first time.
  • Toxic
  • Awards: Slice of Elements 5th Birthday CakeSlice of Elements 4th Birthday Cake
Re: Divisors from a Prime factorization https://elementscommunity.org/forum/index.php?topic=55636.msg1154537#msg1154537
« Reply #10 on: September 08, 2014, 09:05:09 pm »
What about this method for list notation:

2, 2^2, 2^3,...,2^a
3, 3^2,...,3^b
5,...,5^c

The for doubles: follow the pattern of exponent growth:

2*3, (2^2*3), (2*3^2), (2^2*3^2), (2^3*3), (2*3^3), (2^3*3^3),...,(2^a*3^b)
2*5 (follow the same pattern putting raise 2 once, then raise 5 once, then raise both together)
3*5 (same as above)

For triples:

2*3*5, (2^2*3*5), (2*3^2*5), (2*3*5^2), (2^2*3^2*5), (2^2*3*5^2), (2*3^2*5^2)

question: would it be easier (nicer looking) to go:

2*3*5, 2^2*3*5, 2^3*3*5,...,2^a*3*5
           2*3^2*5, 2*3^3*5,...,2*3^b*5
           now we just raise 5 until 2*3*5^c

how would you suggest I list the rest in a nice listed way?

This seems more complicated than it needs to be. If you rewrite 2^x as (2^x)(3^0)(5^0) all the factors become analogous and then can be placed in correspondence with the triples (x,y,z).

Offline SavageTopic starter

  • Jr. Member
  • **
  • Posts: 133
  • Country: us
  • Reputation Power: 2
  • Savage is a Spark waiting for a buff.
  • Elements Veteran
Re: Divisors from a Prime factorization https://elementscommunity.org/forum/index.php?topic=55636.msg1154538#msg1154538
« Reply #11 on: September 08, 2014, 09:07:56 pm »
Just edited the post
Can you see if that makes more sense

 

blarg: