## how can i write a code that uses baby step - giant...

Hi, given a, b and n such that a^x is congurent to b (mod n) how could one write a procedure to calculate x using baby step giant step method to calculate x for example i would like to be able to show that x=60 when a=3 b=64 and n=137

## Consecutive odd numbers summed up to 3375...

Ex: Give: Sum = 16;

Result: [1,3,5,7]

## how many time we write number 3...

we have positive number from 1 to 1000. how many time we write number 3?

## sum [Magic squares]...

A square has 36 sub-squares in it. How to Number each sub squares from 1 to 36, to make the sum of vertical, the sum of horizontal, and the sum of cross line are the same .Describe in general if possible.

## Can we use the Iterator package with Maple 12?...

Can I dowload the Iterator package and use it with Maple 12? Thanks.

## How can I get a list of the Stirling2 command coun...

I obtained a count of 7 with the command: stirling2(4,2) . How do I get a list of the 7 partitions? Thanks.

## Finding the divisors of a number...

Recently I saw this question (http://www.mapleprimes.com/posts/141668-Partitions-Of-A-Natural-Number-Into-Factors). I want to find the divisors of a number, say 120, :

2,4,6,8,10,12,15,20,24,30,40,60,120

for the students but couldn't find a simple way for that expect the solutions in above link. Isn't an easier way to do this job in Maple?

Thanks so for the time

## Probing if an experission is an integer?...

Recently, I encountered the problem in which one's asked to investigate if the following fraction is an integer or not. Of course the problem has an theoritical approach, but I wanted to make the problem dynamic. The fraction is p=(k^2-87)/(3k+117) and we want to find k in which p is an integer. What I did is to use the function msolve and a loop for but it gives my just the empty set which is incorrect. Any hint? Thanks

## Perfect square (Could you explain to me?)...

Find all the positive integers $n$ ,such that