• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

All Vowels in an Integer

 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the first integer where all of the vowels are included in it?

Eric
 
lowercase baba
Posts: 12893
63
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
negative four googoleplex?
 
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
one hundred and five?
 
Bartender
Posts: 1197
22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Ernest Friedman-Hill:
one hundred and five?



Where's the 'y'?
[ May 08, 2006: Message edited by: Ryan McGuire ]
 
Marshal
Posts: 25832
69
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You want a 'y'? Then one hundred and thirty.
 
Ryan McGuire
Bartender
Posts: 1197
22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Paul Clapham:
You want a 'y'? Then one hundred and thirty.



One hundred and twenty five.
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would not use and...

Eric
 
Ryan McGuire
Bartender
Posts: 1197
22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Eric Pascarello:
I would not use and...



So what answer were you looking for? A hundred thirty-one? One thousand five?
[ May 08, 2006: Message edited by: Ryan McGuire ]
 
fred rosenberger
lowercase baba
Posts: 12893
63
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm still not sure what you mean by "first" integer. there is no first, because for any integer you can name, i can name an infinite more that are to the left of it on the numberline.

if you mean first POSITIVE integer, that's different.

according to The Straight Dope, w can also sometimes be a vowel.
Dictionary.com also claims that l, m, n, and r are potenially vowels...
[ May 08, 2006: Message edited by: fred rosenberger ]
 
Paul Clapham
Marshal
Posts: 25832
69
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Eric Pascarello:
I would not use and...

Eric

I always use and.
 
fred rosenberger
lowercase baba
Posts: 12893
63
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I remember being taught that "and" was used for the decimal part of a float.

"one hundred and forty-four" is wrong.

"one hundred forty-four" is correct.

"seven and three tenths" is correct.
 
Ryan McGuire
Bartender
Posts: 1197
22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by fred rosenberger:
I remember being taught that "and" was used for the decimal part of a float.

"one hundred and forty-four" is wrong.

"one hundred forty-four" is correct.

"seven and three tenths" is correct.



Ok then, let's try "zero and eight fourths" (0 8/4). That is merely a mixed number that evaluates to an integer value.
 
Ernest Friedman-Hill
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
final int aeiouy = 0;

Clearly 0 is the answer
 
Paul Clapham
Marshal
Posts: 25832
69
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by fred rosenberger:
I remember being taught that "and" was used for the decimal part of a float.

"one hundred and forty-four" is wrong.

"one hundred forty-four" is correct.

"seven and three tenths" is correct.

I wasn't ever taught any of those things that I can remember, or anything like them. I just learned how to say numbers from everybody else just like people regularly learn language. So to me, "one hundred forty-four" sounds like a specialized American usage.
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This may be of some interest: American and British English Differences: Numbers.

I wonder... what if we consider all 26 letters used in English. What's the largest number of different letters that can be incorporated in the representation of a single positive integer? And what is the smallest integer that achieves this?

For purposes of this problem, please consider only standard counting emthods (albeit perhaps extended for somewhat larger numbers than we usually see). No fractions, no formulas, no, Java source code. You can include or omit "and" anywhere it serves your purposes as long as it's "standard" somewhere that speaks a form of English - I don't think it will matter much. But there's no "zero thousand" or "... and zero". No zero anywhere you don't need it. And no "zillion" either. If you can find a more plausible-sounding way to insert a z somewhere, have at it.
 
Bartender
Posts: 612
7
Mac OS X Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if i use and then the answer if nine
 
Ryan McGuire
Bartender
Posts: 1197
22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If "first" is defined as "closest to zero", I'd go with "negative four".
 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jim, I was able to get in 23 letters with:

1,001,000,000,001,000,001,001,024,678

I couldn't figure out how to use J, K or Z
 
Ranch Hand
Posts: 1923
Scala Postgres Database Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
french: quarantetrois (43).
german: Einemilliontausend. (1001000)
 
Jim Yingst
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
George: I got the same 23 letters using

1,001,000,000,001,000,001,001,002,568

Which is pretty close to your answer, all things considered. Good job.
 
George Harris
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually Jim if you can write your positive integer with some precision(2), we have the answer for the 'Z'

1,001,000,000,001,000,001,001,002,568.00
 
Jim Yingst
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmm. To my mind it's no longer an integer if you do that. Still, that may be as close as we can come.
 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could have a dozen billion:

1,001,000,000,001,012,001,001,002,568
 
George Harris
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
251,000,000,000,000,001,001,002,568.00 could be the lower answer...

A quarter octillion, one septillion, etc.
 
Jim Yingst
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you guys are thinking outside the box at least, I'll give you that...
 
The human mind is a dangerous plaything. This tiny ad is pretty safe:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic