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

The printer works fine with windows apps like MS Office or PDF document but to a certain special App the printer is not responding?
Published February 3, 2025

The printer works fine with windows apps like MS Office or PDF document but to a certain special App the printer is not responding?

I have a Canon imageRunner 1133 printer and Brother DCP 7055. For whatever reason the Canon refuses to print in one certain […]

What settings should I use for formatting a usb drive that I am using to hold clones of virtual machines?
Published May 22, 2020

What settings should I use for formatting a usb drive that I am using to hold clones of virtual machines?

I have a usb drive that I am looking to use to hold clones of my virtual machines. I am already leaning […]

Does Perfectionism Kill Your Productivity?
Published November 8, 2022

Does Perfectionism Kill Your Productivity?

In a time when working from home is the new norm, productivity is pivotal to keeping the work-life balance in check while […]

Why resuming from hibernation is so slow?
Published March 13, 2023

Why resuming from hibernation is so slow?

On a Windows 10 laptop, I noticed that resuming from hibernation takes quite a while. RAM: 32 GB hiberfil.sys size: 13 GB […]

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