Maths problem - number Ninjas needed!

Off Topic (Everything besides dubstep)
Forum rules
Please read and follow this sub-forum's specific rules listed HERE, as well as our sitewide rules listed HERE.

Link to the Secret Ninja Sessions community ustream channel - info in this thread
User avatar
LA_Boxers
Posts: 6411
Joined: Fri Oct 16, 2009 11:10 pm
Location: Croydon

Re: Maths problem - number Ninjas needed!

Post by LA_Boxers » Wed Oct 10, 2012 2:20 pm

Image
Soundcloud - LPR006. Due 20/05/13.

http://www.rood.fm - EVERY OTHER THURSDAY 8-10pm //
http://www.corruptradio.net - EVERY OTHER SUNDAY 6-8pm//

User avatar
kruptah
Posts: 1455
Joined: Mon Jan 08, 2007 8:01 am
Location: Toronto
Contact:

Re: Maths problem - number Ninjas needed!

Post by kruptah » Wed Oct 10, 2012 3:38 pm

now thats some math i can get done,
LA_Boxers wrote:Image

slothrop
Posts: 2655
Joined: Thu Aug 24, 2006 11:59 am

Re: Maths problem - number Ninjas needed!

Post by slothrop » Wed Oct 10, 2012 4:27 pm

That's numberwang!

User avatar
ascent
Posts: 631
Joined: Fri Apr 23, 2010 8:14 pm

Re: Maths problem - number Ninjas needed!

Post by ascent » Wed Oct 10, 2012 5:29 pm

take
n as any integer variable
gT as the total number of groups
g2 as the number of groups of size 2
g3 as the number of groups of size 3

we know

gT = g2 + g3

to find the best total number of groups:

gT = 4*round(n/10)

due to the way changing a group from 2 to 3 allows us to count up in increments of 1 it is quite simple

g2 = 3gT - n
g3 = -2gT + n

you will see that some values of n are not solvable, such as 13, 14, 15 and of course any n < 8

wub
Posts: 34156
Joined: Tue Feb 26, 2008 3:11 pm
Location: Madrid
Contact:

Re: Maths problem - number Ninjas needed!

Post by wub » Thu Oct 11, 2012 7:16 am

Oooooo...that looks like just what I was after. Thanks :D

dmz007
Posts: 83
Joined: Mon Jan 09, 2012 6:38 am

Re: Maths problem - number Ninjas needed!

Post by dmz007 » Thu Oct 11, 2012 7:49 am

Type "spy" in at the MATLAB terminal. It will blow your mind :W:

volcanogeorge
Posts: 2110
Joined: Tue Apr 13, 2010 8:58 pm
Location: Newcastle via Lincoln

Re: Maths problem - number Ninjas needed!

Post by volcanogeorge » Thu Oct 11, 2012 9:18 am

is that the one that draws the picture of spy vs spy as a graph?

i went through all the easter eggs when i was bored last year
Soundcloud
"Gettin' paid like a biker with the best cranks, spray it like a high ranked sniper in the West Bank"
BEETS

User avatar
LACE
Posts: 2751
Joined: Mon Dec 13, 2010 2:00 pm
Location: reykjavik

Re: Maths problem - number Ninjas needed!

Post by LACE » Thu Oct 11, 2012 9:54 am

aww shame i missed this, that's what i get for having a life i guess but i've still managed to figure something out for you wubbz

Xi = {2,3} so as a function you could say X(0) = 2, X(1) = 3 and f(x) = X(x) where x is either 0 or 1.

so now you have S total things but the number of groups needs to be divisible by four yes?

put N to be the number of groups: then N % 4 = 0 and the % is the modulus which gives the remainder of N/4

umm you also got S = Sum of X_i from i = 1 to N.

there are alot of possible combos for the actual groups, there's no one formula to get all the x_i's as you've seen in this thread.

my suggestion to you though would be to look at different combos of different configurations of groups and forget about the ones that don't have N be a multiple of 4.

i'll break it down for you since i'm such a darl

N = number of groups
S = total number of things
X_i = number of objects in group i where i is a whole number from 1 to N and
S = Sum X_i i = 1 to N
N % 4 = 0
X(a) = 2 if a = 0 or X(a) = 3 if a = 1 and a can only equal 0 or 1
ketamine wrote: Also, I'd just like to point out that girls "exist".

User avatar
LACE
Posts: 2751
Joined: Mon Dec 13, 2010 2:00 pm
Location: reykjavik

Re: Maths problem - number Ninjas needed!

Post by LACE » Thu Oct 11, 2012 9:54 am

.
Last edited by LACE on Thu Oct 11, 2012 9:55 am, edited 1 time in total.
ketamine wrote: Also, I'd just like to point out that girls "exist".

User avatar
LACE
Posts: 2751
Joined: Mon Dec 13, 2010 2:00 pm
Location: reykjavik

Re: Maths problem - number Ninjas needed!

Post by LACE » Thu Oct 11, 2012 9:54 am

goddamn work computer always double posts.
ketamine wrote: Also, I'd just like to point out that girls "exist".

wub
Posts: 34156
Joined: Tue Feb 26, 2008 3:11 pm
Location: Madrid
Contact:

Re: Maths problem - number Ninjas needed!

Post by wub » Thu Oct 11, 2012 9:55 am

LACE wrote:aww shame i missed this, that's what i get for having a life i guess but i've still managed to figure something out for you wubbz

Xi = {2,3} so as a function you could say X(0) = 2, X(1) = 3 and f(x) = X(x) where x is either 0 or 1.

so now you have S total things but the number of groups needs to be divisible by four yes?

put N to be the number of groups: then N % 4 = 0 and the % is the modulus which gives the remainder of N/4

umm you also got S = Sum of X_i from i = 1 to N.

there are alot of possible combos for the actual groups, there's no one formula to get all the x_i's as you've seen in this thread.

my suggestion to you though would be to look at different combos of different configurations of groups and forget about the ones that don't have N be a multiple of 4.

i'll break it down for you since i'm such a darl

N = number of groups
S = total number of things
X_i = number of objects in group i where i is a whole number from 1 to N and
S = Sum X_i i = 1 to N
N % 4 = 0
X(a) = 2 if a = 0 or X(a) = 3 if a = 1 and a can only equal 0 or 1

User avatar
Forum
Posts: 10686
Joined: Sat Dec 15, 2007 1:55 am
Location: J R Hartley

Re: Maths problem - number Ninjas needed!

Post by Forum » Thu Oct 11, 2012 9:58 am

Half base x height
Image Image

User avatar
LACE
Posts: 2751
Joined: Mon Dec 13, 2010 2:00 pm
Location: reykjavik

Re: Maths problem - number Ninjas needed!

Post by LACE » Thu Oct 11, 2012 10:02 am

:cornlol:
ketamine wrote: Also, I'd just like to point out that girls "exist".

daeMTHAFKNkim
Posts: 855
Joined: Thu Jul 21, 2011 12:42 am
Location: Colorado Springs, Colorado

Re: Maths problem - number Ninjas needed!

Post by daeMTHAFKNkim » Thu Oct 11, 2012 11:30 am

I feel retarded looking at your guys posts. :corntard:

1+1 is 2.
Soundcloud
Soundcloud
FREE DOWNLOADS ON MY SOUNDCLOUD.
http://www.facebook.com/daemthafknkim
http://www.soundcloud.com/daemthafknkim
Follow Twitter http://www.twitter.com/daemthafknkim Let me know who you are and I'll follow back!

idontreallygiveashit
Posts: 3860
Joined: Thu Aug 04, 2011 10:45 pm
Location: Birmingham

Re: Maths problem - number Ninjas needed!

Post by idontreallygiveashit » Thu Oct 11, 2012 11:31 am

^ way to be a stereotype

dmz007
Posts: 83
Joined: Mon Jan 09, 2012 6:38 am

Re: Maths problem - number Ninjas needed!

Post by dmz007 » Thu Oct 11, 2012 7:04 pm

So is the aim to determine the minimum number of groups needed?
If so then I think I have a solution and could upload a dodgy .exe program today if you want.

Select Windows or Linux :lol:

User avatar
fractal
Mako
Posts: 12133
Joined: Tue Apr 18, 2006 5:58 pm
Location: emerald city, cascadia

Re: Maths problem - number Ninjas needed!

Post by fractal » Thu Oct 11, 2012 7:17 pm

LACE wrote:aww shame i missed this, that's what i get for having a life i guess but i've still managed to figure something out for you wubbz

Xi = {2,3} so as a function you could say X(0) = 2, X(1) = 3 and f(x) = X(x) where x is either 0 or 1.

so now you have S total things but the number of groups needs to be divisible by four yes?

put N to be the number of groups: then N % 4 = 0 and the % is the modulus which gives the remainder of N/4

umm you also got S = Sum of X_i from i = 1 to N.

there are alot of possible combos for the actual groups, there's no one formula to get all the x_i's as you've seen in this thread.

my suggestion to you though would be to look at different combos of different configurations of groups and forget about the ones that don't have N be a multiple of 4.

i'll break it down for you since i'm such a darl

N = number of groups
S = total number of things
X_i = number of objects in group i where i is a whole number from 1 to N and
S = Sum X_i i = 1 to N
N % 4 = 0
X(a) = 2 if a = 0 or X(a) = 3 if a = 1 and a can only equal 0 or 1
:U:
wub wrote:
:cornlol:
sub.wise:.
slow down
epochalypso wrote:man dun no bout da 'nuum

BonerJams04
Posts: 6889
Joined: Tue Dec 27, 2011 3:26 am

Re: Maths problem - number Ninjas needed!

Post by BonerJams04 » Fri Oct 12, 2012 2:13 am

fucking hell you guys are smart
butter_man wrote: who do you think taught you smoke tree's, OD'S, Ice cubes and DOC's?
God, thats who.

Image

User avatar
Forum
Posts: 10686
Joined: Sat Dec 15, 2007 1:55 am
Location: J R Hartley

Re: Maths problem - number Ninjas needed!

Post by Forum » Fri Oct 12, 2012 8:23 am

Reverb wrote:fucking hell you guys are smart
Thank you
Image Image

User avatar
Electric_Head
Posts: 16958
Joined: Tue May 11, 2010 9:59 am
Location: South of Africa
Contact:

Re: Maths problem - number Ninjas needed!

Post by Electric_Head » Fri Oct 12, 2012 8:26 am

Reverb wrote:fucking hell you guys are smart
Do some phyiscs, you'll soon realize a page long equation is not always right.
Image ImageImage Image
Image

Locked

Who is online

Users browsing this forum: No registered users and 0 guests