p4plus2
03-05-2008, 12:42 AM
I got bored in my class the other day so I started messing around with squares and how to make them without multiplying. Heres a php script demonstrating what I found:
<?php
$previousnumber = 0;
for($i = 0; $i < 100; $i++){
$number = $previousnumber + $i + $i + 1;
$previousnumber = $number;
echo ("$number");
echo ("<br>");
}
?>
basically
0 + 0 + 0 + 1 = 1
1 + 1 + 1 +1 = 4
4 + 2 +2 +1 = 9
answerbefore + current number to be squared + current number to be squared+ 1 = number squared
p+2x+1=y(formula I made to show it)
Point of this thread?
Show something intresting many people will never notice.
<?php
$previousnumber = 0;
for($i = 0; $i < 100; $i++){
$number = $previousnumber + $i + $i + 1;
$previousnumber = $number;
echo ("$number");
echo ("<br>");
}
?>
basically
0 + 0 + 0 + 1 = 1
1 + 1 + 1 +1 = 4
4 + 2 +2 +1 = 9
answerbefore + current number to be squared + current number to be squared+ 1 = number squared
p+2x+1=y(formula I made to show it)
Point of this thread?
Show something intresting many people will never notice.