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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:13:15+00:00 2026-06-13T23:13:15+00:00

For given values ‘a’ and ‘y’ , how to find max x value such

  • 0

For given values ‘a’ and ‘y’ , how to find max x value such that x = a^b < y for b∈N and a>0.
For example, y=14 and a = 2 is given, then x must be 8. In other words,for all values of y in [8.15] , x must be 8.
Similarly, for all values of y in [9,26] , x must be 9.

  • 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-13T23:13:16+00:00Added an answer on June 13, 2026 at 11:13 pm

    You can use log with base a. Such a function does not exist in <cmath>, but if you remember the formula that

    log (base a, c) = log (base e, c) / log (base e, a)
    

    You can do it with cmath’s log (natural logarithm) function.

    int exponent = log(y)/log(a); //truncates to the floor, just what we need.
    int answer = a to the power of exponent
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to programming a triangle-calculator, that can calculate from three given values all
Given data frame values are Group year Value A 2010 17 A 2011 18
Given an array with n values, for example: $arr[] = 'ABCDEFABC'; $arr[] = 'ABCDEFDEF';
I'm currently given three values in a table A date value in the format
I am creating xml file with my own tags and given values and that
I have an array with allowed values and an array with given values. Howto
Given the following values YYYY-MM-DD $start = 2012-03-21 $stop = 2012-07-15 and the following
given the two tables and values: Tables People- Columns: [ID]PK Name Field - Columns:
given an n*m matrix with the possible values of 1, 2 and null: .
Given an n-dimensional matrix of values: what is the most efficient way of retrieving

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.