I have to find exact n(any number specified) factors of a number whose all product combined yield the number and largest of n factors is minimised.  Eg: n=2 for number 12; 12= 6*2,12*1,4*3,we will take 4*3 as largest of n factors is minimised here.  Rephrased:      Given $n$ and $M$, write $M$ as a product of $n$ numbers so as to   minimise the largest of them.   What can be the approach to solve this problem?  My approach: break number in prime factors as 12=2*2*3,count each unique number and then distribute it among the n factors like for n=2; let the factors be a and b then as count of "2" is 2 I distribute it as one "2" to both a and b then the remaining 3 can be given to any of a and b but it will produce a=2*3 and b=3 which is wrong,can anyone provide better solution?
Say I have 12 and have to factorize it in 2 factors. Now possible factors are 1, 12 2, 6 3, 4   Now 3,4 is such that value of maximum factor i.e. 4 is minimized among all pairs.  How to find the solution in generic case where a number N is to be divided in K factors minimizing maximum value.
I have 12.10 ubuntu and when I try to remove / install programs I get notification :      Software can't be installed or removed because the authentication service is not available.    (org.freedesktop.PolicyKit.Error.Failed: ('system-bus-name', {'name':  ':1.104'}): org.debian.apt.install-or-remove-packages   When I log in as root user (instead of user account that I regulary use) i have no problems. I need to set weights for some edges from a python script. I have tried looping through object.data.edges and setting bevel_weight values but I can't get it right. It only works if I have first edited some edge's bevel weight by hand from the 3d-view's transform window. But I would like to get it work from my script without any manual hacking.  Steps to reproduce:  Start Blender with default cube and switch to Scripting view.  Try to set weights for all edges:  for edge in C.object.data.edges:     edge.bevel_weight = 1.0   Verify that values changed:  for edge in C.object.data.edges:     edge.bevel_weight   Switch into edit mode in 3d-view and open up transform window by pressing n. Select edges to see that the change did not work (bevel weights are all zero). Switch back to object mode and read values again in scripting console to see that they were reset to zero:  for edge in C.object.data.edges:     edge.bevel_weight   Go back to edit mode and change some edge bevel weight straight from the transform window by hand. Go back to object mode and change values again from the scripting console:  for edge in C.object.data.edges:     edge.bevel_weight = 1.0   This time it works, bevel weights are 1.0 when you go back to edit mode and look from the transform window.   Any ideas? My final need is to apply a bevel modifier to only some set of edges and that's why I'm trying to mark them by using weights. Using vertex group for bevel modifier does not work in my situation, since I need to specify edges, not vertices, which to bevel.   I'm using Blender v2.71. Is there a difference between SWAP and Cache memory? I installed the indicator-multiload 0.2-0ubuntu1 from the software center. (It's very similar to the gnome panel indicator showing memory and CPU graphs)  When I click on the Unity panel which shows the little memory graph, it says ;  Mem :1.451 GB   Cache: 2.581.  This is also represented in the color graph.  However, when I load the System Monitor, SWAP is at a flat 0.  Is this normal, or could there be a bug in either the System Monitor or Panel Indicator? Unlock by fingerprint only Travel grant for undergraduate researcher for attending conference I am an undergraduate student doing independent research. My research work is selected for presentation at a very reputed conference in the US. I am from India. I cannot afford to attend the conference at all. How should I fund my trip? The travel grant for students available from the conference is very low. It can hardly buy me a one way ticket. What are my options? Gparted: move extended partition on the left For example Lets use the Marrutact from Sandstorm, it can cast as a 5th level wizard. if it then takes a prestige class that requires the ability to cast 1st level Arcane spells and advances arcane casting such as Abjurant Champion. assuming it meets all other prerequisites does the Marrutacts spellcasting improve when it takes a level in Abjurant Champion or does it gain no benefit? How does a wheelie work? So I've been trying to create a mathematical model for an electric motorcycle and began to wonder about the maximum possible torque that could be supplied to the rear driven wheel without having the bike begin to lift up on one wheel.  I found ways to calculate this value online; however, the basic concept as to how the bike actually lifts escapes me.    My problem started when I began to think about what axis the bike will rotate about when it is doing the wheelie.  My first intuition was that the frame and front wheel, together, rotate about the rear axle.  But when I drew a free body diagram of the frame/front wheel system just at liftoff (see below) I made note that the only forces acting about the rear axle, point O, is the force of weight.  This means that an increase in applied torque and subsequently, the applied force Fa, should not effect the rotation about the rear axle.  I know that the applied force on the back wheel is indeed correlated with the propensity for a bike to wheelie, so I considered that the axis of rotation I was choosing was wrong.  If we take the free body diagram above and sum the moments about the center of mass, we would find that an increased applied force would in fact cause the solid body to rotate.  The problem with this understanding is that during rotation, the center of mass of the drawn system should actually rises relative to the surface the bike is moving across.  If the bike were to be truly rotating about its center of mass, then the back wheel would begin to dip below the surface of the road like you might see in a glitchy video game.    So I suspect that the bike is in fact rotating about the back axle, but I don't understand why, please help!  edit: I added the external torque from the back wheel to the frame, which would allow the bike to rotate about the back axle  edit 2:  I suppose that the torque acting on the frame via the engine should not effect the rotation as the movement of a motorcycle can be perfectly replicated by applying a force at the back axle.  A third possible axis of rotation might be the lowest point of the back wheel. VHDL Transition Function Quantifiers "most" vs. "most of" What plane type will I need to go transatlantic in Pocket Planes? I'm based in North America and have a bunch of major airports on the Eastern Seaboard.  I'm level 14 and just unlocked the Pearjet, but I still don't have a plane with enough range to make it across the Atlantic.  What's the first plane I'll get that will let me make that crossing?  Or more specifically, what's the range from New York (or Boston) to London (or Lisbon) - the smallest range that'll get me across? Story with multiple 'third planet' races I'm looking for the name and author of a novel (or possibly novella). I first read this in the seventies, and might be older than that. It might have been written for teenagers.  The story takes place on a planet inhabited by a primitive humanoid race, roughly stone age if I remember rightly. Visiting this planet is a small team from a more advanced race, also humanoid and with spacefaring technology (obviously!). They are either there to help or observe, no nefarious purposes. I think they are avoiding contact with the primitives, at least initially. It's explicitly mentioned that the planet they are visiting is the third one of a medium sized star, just like their own homeworld. Also orbiting round the planet is an even more advanced race, using high tech to remain hidden from both the others. They are observing the whole situation, and again its mentioned that this is a 'third planet', like their own homeworld.  I'm a little bit hazy on the rest of the plot, but I think the super-advanced race end up revealing themselves, even though they are not supposed to.  The story is told from the viewpoints of both the second and third races (maybe also the first, I forget)  EDIT: For the record it turns out my recollection was faulty, and the second race are indeed coming to the planet for nefarious purposes. And the planet is at the medieval stage, not stone age. In terminal emulation applications, pressing CTRL + Left / Right arrows jumps from one word to the previous or next one. Is it possible to have the same functionality in a Linux console, whether it is in text or in framebuffer modes?  In my configuration, the CTRL + arrow keys are transformed into escaped character sequences and not interpreted. Where are the save files in Skyrim? How to monitor bandwidth use of each device on wifi network What is LINQ? I know it's for databases, but what does it do? Do 'learn by heart' & 'learn by rote' mean the same? Here in India, both the phrases learning by heart and learning by rote are taken to have the same meaning, i.e., blind memorisation without true understanding.    However, some sources say that to learn something by heart implies that one knows something so well that it has been thoroughly internalised and imbibed.    So is it wrong to conflate the two? Windows 7 "Waiting for background program to close" I am using Windows 7 Home Premium. When I shut down my computer why does the screen show this:    Before shutting down I'm close all programs. iPhone's Bluetooth - What? Why? How? I googled a lot and read many documents. But I can't understand the concept behind iPhone's Bluetooth technology.  In my knowledge, Bluetooth was used for:   Transferring files between devices Wireless communication for things like video gaming and earphones   Recently I tried to copy some of the photos from my old Android mobile to my iPhone 4S via Bluetooth. It's quite simple in my older phones to connect with other devices by Bluetooth for file sharing. But I can't pair other devices (even another iPhone :( ) with my iPhone 4S.   Copying songs/videos may affect their iTunes as well as their business. But what about images? Why is the usage of Bluetooth restricted and what's the use of it being able to transfer images? Is there any other way to use iPhone's Bluetooth to transfer files? Maybe using an app? But I don't want to jailbreak my device.   I'm confused about the restrictions and Apple's thinking. How to disable Windows 10 memory compression? my former wrong assumption: it drains my notebook battery and I've no shortage of RAM. In Task manager you see ntoskrnl.exe is eating more CPU time than any other process. this feature does not appear to be optional and came 2 days ago with the 1st Win10 Update (Win10Pro in my case).  Edit:  I want to disable it, at least to exclude it as a culprit for my (unproven) assumptions. That process never came to my attention in the last 2 months and in task manager's long name it's called "system memory and compressed memory".