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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:01:34+00:00 2026-06-05T21:01:34+00:00

I have a homework that include a new operation (a [n] b), given: a

  • 0

I have a homework that include a new operation (a [n] b), given:

  • a [1] b = ab
  • a [n] 1 = a
  • 2 [2] 3 = 2 [2-1] (2 [2-1] 2) 2 repeated 3 times = 2 [1] (2 [1] 2) = 222 = 16
  • 2 [2] 2 = 2 [2-1] 2 2 repeated 2 times = 2 [1] 2 = (22) = 4
  • 4 [3] 3 = 4 [3-1] (4 [3-1] 4) = 4 [2] (4 [2] 4) 4 repeated 3 times = 4 [2] (4 [1] (4 [1] ( 4 [1] 4))) =
    = 4 [2] 4 444

I don’t need a solution, I just need advice so that I can solve it myself.

  • 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-05T21:01:37+00:00Added an answer on June 5, 2026 at 9:01 pm

    What is being said here can be rephrased as follows.

    For any positive integers a, b and n define

        a [n] b = a [n-1] ( a [n-1] ( ... a ) ) taken b times
    

    In a C-like language

    int myoperator (a, n, b) {
        int x, i;
        x = a;
        if (n == 1){
           x = pow(a,b);
        } else {
           for(i = 1; i < b; i++){
               x = myoperator (a, [n-1], x);
           }
        return x;
    }
    

    Note that the values will grow quickly and get out of the range of machine integers very soon.

    Note also that a[n]b can be defined as

     a [n] b = a [n-1] ( a [n-1] (b-1) ).
    

    using this definition the for loop above can be eliminated.

    int myoperator (a, n, b) 
    int a,n,b;
    {
        int x;
        x = a;
        if (n == 1) 
            x = pow(a,b);
        else if (b == 1) 
                    x = a;
             else {
                  assert(b>1 && n>1);
                  x = myoperator (a, n-1, myoperator(a,n-1,b-1));
             }
        return x;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a homework question that says: Problem 1: Given the array [ 22
I have homework that I need to make a custom string class using C
I need some ideas for a homework assignment that I have. Consider the following
I have a small homework application that writes random numbers from 5 to 77
I have a homework question please help with a little explanation so that I
I have a homework assignment where I need to take input from a file
I have homework that should use fork() and wait() system calls: 1) Write two
So for Homework I have to create this program that reads from a text
This is a homework problem that I have. I have been doing some research
I have this homework that I gotta finish, but then something about it is

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.