NEW PUZZLE for Sajha Intellects Day 2
Lets start with an easy one.
Q. What do you always break by saying it's name?
Helpjava11 bro so mero answer mileko raicha ta asti... Point aayena ta malai lol.... I answered 679
NAS bro: here is the code i wrote to find the ans...
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class Test{
public static void main(String[] args) {
int persistence=1;
int total=10;
List digits = new ArrayList();
for(int i=77;i<1000;i++){
total= persistence(i);
persistence++;
// System.out.println(total);
while( total>9)
{
persistence++;
total= persistence(total);
if(persistence==5){
System.out.println("found the persistence of 5: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;" );
}
}
System.out.println("persistent "+persistence);
// System.out.println(";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;");
System.out.println();
persistence=0;
}
}
public static int persistence(int i){
/*
* because we are using list and using modulus we will get the digits in reverse order.
* to get the digits in right order we need to insert into list again print.
*/
int multip =1;
List digits = new ArrayList();
while(i > 0) {
digits.add(i % 10);
i /= 10;
}
System.out.println(digits);
for (int j=0;j multip = multip * digits.get(j);
}
// System.out.println(multip);
return multip;
}
}
dang Nas bro timi ni tyo 2058 sal ko quiz competition ma thiyou ki k ho...:D
1SAJHA Bro ko answer ७७९ thyo, its 779 in english bro... 679 in nepali is ६७९ ..haha
Anyway 1SAJHA bro (+1)..
I started multyplying backwards ..
I never answered 779 lol in english or nepali helpjava bro
oh ! nevermind that was Punter bro...
9 lai ulto parera garna milcha? LOL
Kiddo bro, timro question ko solution ta cha ni?
im getting infinity while solving the equations...
Kiddo bro ko problem ko no solution re, http://onlinemschool.com/math/assistance/equation/gaus/ le bhanya,
Solution:
Rewrite the system in matrix form and solve it by Gaussian Elimination (Gauss-Jordan elimination)
7 5 3 26
2 1 3 5
8 6 2 44
devide the 1-th row by 7
1 5/7 3/7 26/7
2 1 3 5
8 6 2 44
from 2; 3 rows we subtract the 1-th row, multiplied respectively by 2; 8
1 5/7 3/7 26/7
0 -3/7 15/7 -17/7
0 2/7 -10/7 100/7
devide the 2-th row by -3/7
1 5/7 3/7 26/7
0 1 -5 17/3
0 2/7 -10/7 100/7
from 1; 3 rows we subtract the 2-th row, multiplied respectively by 5/7; 2/7
1 0 4 -1/3
0 1 -5 17/3
0 0 0 38/3
Answer:
The system of equations has no solution because: 0 ≠ 38/3
Last edited: 02-Jun-14 12:06 PM
Solution chha bro.
f(7,5,3)=26
f(2,1,3)=5
f(8,6,2)=44
f(4,9,5)=?
Maybe you can envision it better with a diagram? Perhaps:
yo question pass gardiye Kiddo bro... give the answer..
NAsie : was thinking more of 6*6-6 = 30 lol
Only u could have thought abt more then just 6 or 9 :P
i am guessing, it should be 29.
My interpretation for this was :
the highest two numbers - the square of the smallest number.
i.e, 7*5 - 3^2 = 26
3*2 - 1^2 = 5
8*6 - 2^2 = 44
9*5 - 4^2 = 29
Coolbuddy got it right. लौ HelpJava ब्रो, एक पोइन्ट मेरो तर्फ बाट Coolbuddy को नाउमा पाउँ.
लौ यस्तो सजिलो problem रहिछ . के के न 4 way equation solve गर्दै बसिरा म पनि . दिमाग खराब ..
ल coolbuddy (+1) .
अरु प्रोब्लेम हरु छ भने post गरौ है सथिहो . मा संग त कुनै छैन आइले.
This is an old question but it can still be fun for those who haven't heard it or solved it. If you know the answer please give a like :) If you are seeing for the first time then please give your reasoning :)
Three people check into a hotel.
They pay $30 to the manager and go to their room.
The manager suddenly remembers that the room rate is $25 and gives $5 to the bellboy to return to the people.
On the way to the room the bellboy reasons that $5 would be difficult to share among three people so he pockets $2 and gives $1 to each person.
Now each person paid $10 and got back $1.
So they paid $9 each, totalling $27. The bellboy has $2, totalling $29.
Where is the missing $1?
Last edited: 02-Jun-14 02:34 PM
the 2 dollar paid to the kid is already included in the $27 so we cannot add it again. so 27+3 = 30..
Good question though..
Please log in to reply to this post
You can also log in using your Facebook