Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: How many different varieties (color, size, etc) of socks do you have in your sock drawer?

by Tux (Abbot)
on Oct 02, 2016 at 10:00 UTC ( #1173118=note: print w/replies, xml ) Need Help??


in reply to How many different varieties (color, size, etc) of socks do you have in your sock drawer?

All my socks, both two types of "normal" socks, my white badminton sporting socks, and several bright-colored skiing sock pairs do not just come in pairs: they are all seamless and have a right-fit and a left-fit. All these math riddles assume left and right socks to be equal.


Enjoy, Have FUN! H.Merijn
  • Comment on Re: How many different varieties (color, size, etc) of socks do you have in your sock drawer?

Replies are listed 'Best First'.
Re^2: How many different varieties (color, size, etc) of socks do you have in your sock drawer?
by shmem (Chancellor) on Oct 02, 2016 at 10:10 UTC
    they are all seamless and have a right-fit and a left-fit.

    You can turn a left-fit into a right-fit and vice versa, if you treat them as Inside-Out-Objects. More math ;-)

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1173118]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2020-04-06 00:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The most amusing oxymoron is:
















    Results (36 votes). Check out past polls.

    Notices?