Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7843411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:32:36+00:00 2026-06-02T16:32:36+00:00

So there is a website named interviewstreet.com. Here we can find challenging programming problems.

  • 0

So there is a website named interviewstreet.com. Here we can find challenging programming problems. Unfortunately you have to be logged in to see the questions.

Here’s a brief description of the problem I’m attempting to solve:

Find the no of positive integral solutions for the equations (1/x) + (1/y) = 1/N! (read 1 by n factorial) Print a single integer which is the no of positive integral solutions modulo 1000007.

For example, when N=3, (x,y) can be: (7,42), (9,18), (8,24), (12,12), (42,7), (18,9), (24,8). Or so I thought.

Help me please, especially you who have solved this problem. I have just coded for the problem Equations. There is something wrong with my algorithm, can I ask for output for the first 10 integers? i.e. N=2, N=3, N=4 … N=10 so that I can find out the flaw in my algorithm. Thanks 🙂

EDIT: Oh, please don’t post solution code as it will ruin the fun for me and for people trying to solve this 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T16:32:37+00:00Added an answer on June 2, 2026 at 4:32 pm

    My solutions was accepted by interview street.
    Firstly, my solutions wasn’t accepted, but after saw @Reinardus Surya Pradhit post, i realized, if pair (x, y) will be count twice, so i change it a litter bit and got success
    I will not post my solution here, but i can tell you the test case for all variable from N = 3 -> N = 10
    Here the result

    N=3: 9
    N=4: 21
    N=5: 63 
    N=6: 135
    N=7: 405
    N=8: 675
    N=9: 1215
    N=10: 2295
    

    My hint is: try to express N! in primes from like p1^q1 * p2^q2 * ... * pn^qn

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hi currently i have developed my own website named www.eyeview.com. i want to update
Is there a way to see the tree of a website? Let's say: www.randomsite.com
i have 2 file js in my asp website named 1-jquery.datepick.js 2-jquery.hijridatepick.js these file
Is there any website which provides core java based programming challenges that tests programming
In this website there are a list of for loop variations. I can understand
i I can not understand one thing.. On my website there is a button
I have an azure website which is named: http://myapp.cloudapp.net Of-course this URL is kind
I need to use a font named Trajan in a new website, is there
Hey, I'm programming a feedback form on a website for a client, however, there
Let's start by example. There's a website, say it's a clone of Twitter named

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.