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

Correct way to remove and add product to order on sales_order_place_before event
Published December 16, 2022

Correct way to remove and add product to order on sales_order_place_before event

I’m trying to use the sales_order_place_before event to remove or add products to the order only after successful payment but facing a […]

Monitoring two internet connections – Detect outages
Published August 3, 2022

Monitoring two internet connections – Detect outages

I have two different internet connections on my house (from two different ISPs). And I use a TP-Link ER605 Multi-Wan router to […]

Can’t figure out how to edit bootable ISO file
Published November 16, 2024

Can’t figure out how to edit bootable ISO file

I need to add file to windows 10 installation ISO. I’ve mounted ISO, copyed everything with cp to another directory, added file […]

Caching content from my homelab on a proxy server?
Published October 29, 2023

Caching content from my homelab on a proxy server?

My homelab server has several services on it (personal website, Nextcloud, Jellyfin, etc..) that I access via a VPS, which uses Nginx […]

Interesting

  • Saving an extra checkout shipping address field in Magento 2.4.5
  • Magento 2: updateCustomerV2 graphQl
  • Combine MultiLanguage StoreView & main Language
  • Add a new filter in sort “Available for purchase” in magento 2.4.6
  • Suppress PowerShell prompts when executing script from standard input
  • What causes Windows Hello fingerprint and PIN data to be lost?
  • Unable to boot to Windows, says boot disk is unavailable after installing Ubuntu
  • Building GuestAdditions failed on guest RHEL9 due to read-only member ‘vm_flags’

Post navigation

  • Previous post JavaScript Variables
  • Back to post list
  • Next post Indian standards Mobile Number Magento 2
——————-
  • Saving an extra checkout shipping address field in Magento 2.4.5
  • Magento 2: updateCustomerV2 graphQl
  • Combine MultiLanguage StoreView & main Language
  • Add a new filter in sort “Available for purchase” in magento 2.4.6
  • Suppress PowerShell prompts when executing script from standard input
——————-
  • 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

© 2024 Rubin Shrestha – All rights reserved

Powered by WP – Designed with the Customizr theme