# Multiplication loops?

• Jul 12th 2009, 12:49 PM
king.oslo
Multiplication loops?
Hello,

I am a web-programmer; I am interested in learning how to do this:

2. Find an expression (EXP) that when multiplied with VAR is unequal to VAR.
3. Multiply this result with EXP again to produce a new result that is unequal to 1.
4. Multiply this result with EXP again to produce a new result that is unequal to 1.
5. Multiply this result with EXP again to produce a new result that is equal to 1.

The idea is to find a loop where a multiplication can be repeated, and at a predetermined number of repetitions goes back to the number we started with. It is important that the expression is the same every repetition.

Thanks!

Kind regards,

Marius Jonsson
• Jul 13th 2009, 04:19 AM
CaptainBlack
Quote:

Originally Posted by king.oslo
Hello,

I am a web-programmer; I am interested in learning how to do this:

2. Find an expression (EXP) that when multiplied with VAR is unequal to VAR.
3. Multiply this result with EXP again to produce a new result that is unequal to 1.
4. Multiply this result with EXP again to produce a new result that is unequal to 1.
5. Multiply this result with EXP again to produce a new result that is equal to 1.

The idea is to find a loop where a multiplication can be repeated, and at a predetermined number of repetitions goes back to the number we started with. It is important that the expression is the same every repetition.

Thanks!

Kind regards,

Marius Jonsson

Is an expression in VAR acceptable?

CB
• Jul 13th 2009, 07:24 AM
king.oslo
Yes.

Marius