Vamsi Pavan’s Place

When curiousity outbursts …..

Give a fast way to multiply a number by 7

October 6th, 2006 · No Comments · Algorithms

Represent 7 in binary format. Now shifting and adding by appropriate times will give the solution

or Multiply it by 8 (shift by 3 bits) and subtract the original number.

Bookmark it! These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • StumbleUpon
  • BlinkList
  • YahooMyWeb
  • NewsVine
  • blogtercimlap
  • Netvouz
  • Technorati
  • Slashdot
  • Print this article!

Tags:

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment