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

  • Home
  • SEARCH
  • 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 7664705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:22:20+00:00 2026-05-31T14:22:20+00:00

For Pi Day, I am trying to write a Java program that tries to

  • 0

For Pi Day, I am trying to write a Java program that tries to find a given word in Pi (or another given irrational number). I almost have it all completed, but I am conflicted about how I should convert each digit/digits of pi into a letter. I thought of saying: A=01, B=02, C=03…Y=25, Z=26.

However, I then felt bad for all the poor number sequences that don’t even have a chance since any sequence that does not begin with a “0” or “2” will be disregarded entirely. This means 80% of sequences are irrelevant?

Can I do a base-26 to base-10 conversion? Not sure how to do that code-wise if that is indeed a proper solution?

Thanks!

  • 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-05-31T14:22:21+00:00Added an answer on May 31, 2026 at 2:22 pm

    You can convert Pi from its base-10 form to any other base (i.e. base 26, where you only use letters A-Z, and not numbers 0-9), using a method like this one. The resulting “digits” will be all letters.

    You’ll have to modify the fromDecimalToOtherBase method so that it only outputs letters. Otherwise, it should be pretty straight forward, and it’s the same algorithm to convert between decimal and any arbitrary base.

    Just for kicks, I also found this page which contains an arbitrary base converter. If you enter Pi without the decimal, and enter “26” for the destination base, it’ll do the conversion (though it still uses digits 0-9, so it doesn’t “solve” the problem, the way you want to).

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

Sidebar

Related Questions

gud day... i'm trying to write a program in javascript that uses .json. i
I have been at this all day, trying to write a recursive function in
I have spent most of a day trying to understand why Java cannot compile
I have spent the whole day trying to make a script which on submit
I'm trying to produce just the day number in a WPF text block, without
I'm trying to chart the number of registrations per day in our registration system.
I am trying to write an regular expression in c# that will check a
I'm trying to write a Microsoft SQL Server 2005 query that counts a total
Im trying to write a function that counts down to a date which works
I am trying to write a sql query but i find some difficulties.What i

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.