Solution: To find the multiple of 3 or 5 simply write and run the following code
let variables be $sum = 0, $n
<?php
$sum = 0;
for ($n = 0; $n < 1000;...
The multiples of 8 are
8, 16, 24, 32…
These are in an A.P., having first term as 8 and common difference as 8.
Therefore, a = 8
d = 8
S15 = ?
Sn = n/2 [2a + (n - 1)d]
S15 = 15/2 [2(8) + (15 -...
Let the three consecutive multiples of 8 be x, x+8 and x+16.
According to question,
x+x+8+x+16=888 [Subtracting 24 from both sides]
=> 3x=864
=> 3x/3=864/3 [Dividing both sides by3]
=> x = 288
Hence, first multiple of...
Solution: Smallest number divisible by 4 after 10 is 12, The greatest number below 250 which is divisible by 4 is 248
Number of terms: {(248-12)/4}+1
{236/4}+1 = 59+1 = 60