Operations on numbers

Discussion in 'Java' started by Avenger625, Jun 17, 2011.

  1. Avenger625

    Avenger625 New Member

    Joined:
    Feb 1, 2011
    Messages:
    20
    Likes Received:
    2
    Trophy Points:
    0
    I would like all the members here take part in this and contribute to this simple thread......

    We all think differently....so we ll have different solutions to this simple problem.

    I am searching for different logics that would generate the following numbers in an arbitary range say between UpperLimit and LowerLimit. (int UL,LL).
    1. Armstrong Number
    *2. Magic / Ramanujan Number [http://www.quickermaths.com/ramanujan-number/] << This is more important for me.
    3. Krishnamurthy Number [A krishnamurthy number is one whose sum of the factorials of each number is equal to the number itself. Eg: 145]


     
  2. softracid

    softracid New Member

    Joined:
    Jun 21, 2011
    Messages:
    17
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    Student
    Location:
    Aligarh
    i can help u in 1st and 3rd problem.
    Bt at that time i'm om mobile so cant post u whole procedure. And i will try to solve 2nd one also.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice