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 7892169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:48:09+00:00 2026-06-03T06:48:09+00:00

Example: When the division is applied as a whole, the result is, The summation

  • 0

Example:
![math]http://mathurl.com/83cpbet.png

When the division is applied as a whole, the result is,

http://mathurl.com/79p3hoh

The summation formula is given by,
summation

The above can be easily calculated in O(1), using the rules of summation.

But when it is applied to each term individually(truncating after the decimal point in the quotient),
=0+1+1+2+3+3+4+5=19. [using normal int/int division in C]

The above method requires O(N) as rules of summation can NOT be applied.

I understand the above is due to loss of precision is more when the division is applied to each term rather than at the last. But this is exacly what I need.[In the above example, 19 is the required solution and not 21]

Is there a formula that would serve as a shortcut for applying division individually to each term, similar to summation?

  • 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-03T06:48:10+00:00Added an answer on June 3, 2026 at 6:48 am

    So, you get:

    0 + (1+1+2) + (3+3+4) + 5

    Let’s multiply this by 3:

    0 + (3+3+6) + (9+9+12) + 15

    And compare it with the numerator of (1+…+15)/3:

    1 + (3+5+7) + (9+11+13) + 15

    You can clearly see that the sum you’re seeking is losing 3 every 3 terms to the numerator or 1 in every term on average. And it doesn’t matter how we group terms into triples:

    (0+3+3) + (6+9+9) + 12+15
    (1+3+5) + (7+9+11) + 13+15

    or even

    0+3 + (3+6+9) + (9+12+15)
    1+3 + (5+7+9) + (11+13+15)

    So your sum*3 is less than the numerator of (1+…+15)/3 by about the number of terms.

    And the numerator can be calculated using the formula for the sum of the arithmetic progression: n2, where n is the number of terms in the sum:

    1+3+5+7+9+11+13+15 = 28 = 64

    Now you subtract 8 from 64, get 56 and divide it by 3, getting 18.6(6). The number isn’t equal to 19 because n (the number of terms) wasn’t a multiple of 3.

    So, the final formula isn’t exactly (n2–n)/3, but differs in value at most by 1 from the correct one.

    In fact, it’s:

    (n*n-n+1)/3 rounded down or calculated using integer division.

    Plugging the number(s) into it we get:

    (8*8-8+1)/3 = 57/3 = 19

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

Sidebar

Related Questions

Multiplication and division can be achieved using bit operators, for example i*2 = i<<1
Does anyone know how I can update the style attribute of a division using
How can I get a float or real value from integer division? For example:
I need the end result to be a whole number. If the division is
Example: regular_string = %s %s % (foo, bar) result = {} result[somekey] = regular_string,
How can I remove ' from the string '/' and use it for division
Given an example: We need to calculate a size of a subsections for an
Why can't java gracefully return some value with a division by zero and instead
For example, the standard division symbol '/' rounds to zero: >>> 4 / 100
When I make a division in C#, it automaticaly rounds down. See this example:

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.