Skip to content
Rubin Shrestha
  • Rubin Shrestha
  • Profile
  • Blog
  • Nepali Typing
  • Contact
  • Search
Rubin Shrestha
  • Search
  • Rubin Shrestha
  • Profile
  • Blog
  • Nepali Typing
  • Contact
Home » Blog » Find the number N, where (N+X) divisible by Y and (N-Y) divisible by X
Blog

Find the number N, where (N+X) divisible by Y and (N-Y) divisible by X

by Rubin|Published January 28, 2023

Given two numbers X and Y. the task is to find the number N (N ≤ 10^18) which satisfies these two conditions: (N + X)… Read More

The post Find the number N, where (N+X) divisible by Y and (N-Y) divisible by X appeared first on GeeksforGeeks.

You may also like

Published March 6, 2020

5 Projects to Help You Master Modern CSS

Many claim CSS is not a programming language. I agree — it’s tougher. A mastery of CSS requires skills in design, determination, […]

KVM – WFH / Gaming dual monitor
Published September 15, 2023

KVM – WFH / Gaming dual monitor

I have a gaming pc using 2 monitors, and now will be working from home using an HP laptop as well. I […]

How to setup a home-network with a webhost
Published November 12, 2019

How to setup a home-network with a webhost

I want to setup my home-network in a way that I can safely host a website on my raspberry pi. If I’ve […]

What are the fan dimensions for EATON 5E 2000I USB UPS 2000VA/1200W
Published May 28, 2023

What are the fan dimensions for EATON 5E 2000I USB UPS 2000VA/1200W

I would like to replace the fan because it’s too noisy but I’m not sure what the dimensions are. It looks like […]

Interesting

  • Trying to understand TrueNAS filename order. Files were created in numerical order, then why does the file list show up in random order? [closed]
  • Why does the run dialog opens my C drive for my custom variable %test%, but with %temp% it works?
  • Are these burn marks on my motherboard?
  • What could explain Windows PowerShell taking over one hour to load?
  • How to open a specific commit (by hash) in VS Code’s multi-diff view?
  • Is this the best way to rename multiple files in a Window folder using PowerShell?
  • When should I be using a fan controller over the ones on the motherboard?
  • Windows 11 taskbar search keeps loading forever and never shows results

Post navigation

  • Previous post How to create self string using special characters?
  • Back to post list
  • Next post Magento 2.4.5-p1: Error on a fresh installation on a VPS: Deprecated Functionality: Creation of dynamic property
——————-
  • Trying to understand TrueNAS filename order. Files were created in numerical order, then why does the file list show up in random order? [closed]
  • Why does the run dialog opens my C drive for my custom variable %test%, but with %temp% it works?
  • Are these burn marks on my motherboard?
  • What could explain Windows PowerShell taking over one hour to load?
  • How to open a specific commit (by hash) in VS Code’s multi-diff view?
——————-
  • Rubin Shrestha
  • Profile
  • Blog
  • Nepali Typing
  • Contact
——————-
  • Blog
  • Contact
  • Nepali Typing | Nepali Unicode | English to Nepali | English Conversion | English Translate | नेपाली to English | नेपाली टाईपिङ
  • Occasional Photography
    • The desert that everybody loves in pictures
  • Photography
  • Rubin Shrestha

© 2026 Rubin Shrestha – All rights reserved

Powered by WP – Designed with the Customizr theme